-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDockerfile
21 lines (16 loc) · 803 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10-slim-bullseye
LABEL maintainer="Martijn Pepping <[email protected]>"
LABEL org.opencontainers.image.authors="Martijn Pepping <[email protected]>"
LABEL org.opencontainers.image.description="Solarman MQTT published API data of supported PV systems to MQTT."
LABEL org.opencontainers.image.source="https://github.com/mpepping/solarman-mqtt"
LABEL org.opencontainers.image.title="Solarman MQTT"
LABEL org.opencontainers.image.url="https://github.com/mpepping/solarman-mqtt/pkgs/container/solarman-mqtt"
ADD . /opt/app-root/src/
WORKDIR /opt/app-root/src
RUN python3 -m venv /opt/venv && \
. /opt/venv/bin/activate && \
pip install --upgrade pip && \
pip install -r requirements.txt
ENV PATH=/opt/venv/bin:$PATH
ENTRYPOINT ["python", "run.py"]
CMD ["-d"]