2024-02-02 22:51:54 +02:00
|
|
|
# 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
|
2026-03-02 23:21:36 +02:00
|
|
|
COPY agent/requirements.txt .
|
2024-02-02 22:51:54 +02:00
|
|
|
# install dependencies
|
2026-03-02 23:21:36 +02:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
2024-02-02 22:51:54 +02:00
|
|
|
# copy the content of the local src directory to the working directory
|
2026-03-02 23:21:36 +02:00
|
|
|
COPY agent/src/ .
|
2024-02-02 22:51:54 +02:00
|
|
|
# command to run on container start
|
|
|
|
|
CMD ["python", "main.py"]
|