Files
volvo2mqtt/Dockerfile
T
2023-06-20 13:06:17 +02:00

18 lines
414 B
Docker

# set base image (host OS)
FROM python:3.9-slim
# set the working directory in the container
WORKDIR /volvoAAOS2mqtt
# 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", "-u", "./main.py" ]