sem8-iot-test/agent/Dockerfile
hasslesstech d215e527ed
All checks were successful
Test Agent / test-agent-run (push) Successful in 5m25s
add lines
2026-03-03 18:54:42 +02:00

17 lines
396 B
Docker

# set base image (host OS)
FROM python:latest
# set the working directory in the container
WORKDIR /usr/agent
# copy the dependencies file to the working directory
COPY requirements.txt .
# install dependencies
RUN pip install -r requirements.txt
# copy the content of the local src directory to the working directory
COPY src/ .
# command to run on container start
CMD ["python", "main.py"]