Setting up the repo with correct dockerfiles and docker-copmose files, and deleting .idea from git
This commit is contained in:
2
edge/.gitignore
vendored
2
edge/.gitignore
vendored
@@ -1,2 +0,0 @@
|
||||
venv
|
||||
app.log
|
||||
@@ -3,9 +3,9 @@ FROM python:3.9-slim
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
# Copy the requirements.txt file and install dependencies
|
||||
COPY requirements.txt .
|
||||
COPY edge/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy the entire application into the container
|
||||
COPY . .
|
||||
COPY edge/. .
|
||||
# Run the main.py script inside the container when it starts
|
||||
CMD ["python", "main.py"]
|
||||
@@ -17,7 +17,9 @@ services:
|
||||
|
||||
edge:
|
||||
container_name: edge
|
||||
build: ../
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: edge/Dockerfile
|
||||
depends_on:
|
||||
- mqtt
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user