mmrelaynode/app/Dockerfile

15 wiersze
503 B
Docker
Czysty Zwykły widok Historia

2023-08-28 19:59:13 +00:00
FROM python:3.11-slim-bookworm AS app
2023-08-28 16:50:17 +00:00
LABEL "website"="https://github.com/mate-dev/mmrelaynode"
2023-08-21 10:36:53 +00:00
RUN groupadd -g 1000 mesh && useradd -ml -u 1000 -g 1000 -s /bin/bash mesh
2023-08-21 11:15:00 +00:00
RUN pip install --upgrade pip -qq
2023-08-21 10:36:53 +00:00
USER mesh
2023-08-28 16:50:17 +00:00
WORKDIR /home/mesh/app
COPY meshtastic-matrix-relay /home/mesh/app
2023-08-28 19:59:13 +00:00
RUN pip install -qq -r /home/mesh/app/requirements.txt --no-cache-dir
2023-08-28 16:50:17 +00:00
RUN echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc
2023-08-28 19:59:13 +00:00
COPY config.yaml .
2023-08-28 16:50:17 +00:00
#ENTRYPOINT ["sh", "-c", "sleep 30 && python main.py"]
2023-08-29 00:00:05 +00:00