NUT_to_Influx/dockerfile
2022-03-16 12:55:26 -04:00

11 lines
348 B
Plaintext

# set base image (host OS)
FROM python:3.9.10-slim-buster
# 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 main.py .
# command to run on container start
CMD [ "python", "./main.py" ]