Setting up the repo with correct dockerfiles and docker-copmose files, and deleting .idea from git
This commit is contained in:
2
agent/.gitignore
vendored
2
agent/.gitignore
vendored
@@ -1,2 +0,0 @@
|
||||
venv
|
||||
__pycache__
|
||||
@@ -3,10 +3,10 @@ FROM python:latest
|
||||
# set the working directory in the container
|
||||
WORKDIR /usr/agent
|
||||
# copy the dependencies file to the working directory
|
||||
COPY requirements.txt .
|
||||
COPY agent/requirements.txt .
|
||||
# install dependencies
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
# copy the content of the local src directory to the working directory
|
||||
COPY src/ .
|
||||
COPY agent/src/ .
|
||||
# command to run on container start
|
||||
CMD ["python", "main.py"]
|
||||
@@ -16,7 +16,9 @@ services:
|
||||
|
||||
fake_agent:
|
||||
container_name: agent
|
||||
build: ../
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: agent/Dockerfile
|
||||
depends_on:
|
||||
- mqtt
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user