mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-07-22 02:13:01 +02:00
17 lines
410 B
Docker
17 lines
410 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 / .
|
|
|
|
# command to run on container start
|
|
CMD [ "python", "-u", "./main.py" ] |