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-10-25 17:16:16 +00:00
|
|
|
RUN echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc
|
2023-08-21 11:15:00 +00:00
|
|
|
RUN pip install --upgrade pip -qq
|
2023-09-09 22:24:15 +00:00
|
|
|
RUN ln -s /home/mesh/.local/bin/meshtastic /bin/meshtastic
|
2023-08-21 10:36:53 +00:00
|
|
|
USER mesh
|
2023-08-29 22:54:33 +00:00
|
|
|
COPY --chown=mesh:mesh meshtastic-matrix-relay /home/mesh/app
|
2023-10-25 17:16:16 +00:00
|
|
|
COPY --chown=mesh:mesh --chmod=744 entrypoint.sh /usr/local/bin/entrypoint.sh
|
2023-09-25 20:47:45 +00:00
|
|
|
COPY --chown=mesh:mesh --chmod=744 wait-for-it.sh /home/mesh/.local/bin/wait-for-it.sh
|
2023-09-25 21:17:30 +00:00
|
|
|
COPY --chown=mesh:mesh conf_wrapper.py /home/mesh/app/
|
|
|
|
COPY --chown=mesh:mesh command_wrapper.py /home/mesh/app/
|
2023-08-28 16:50:17 +00:00
|
|
|
WORKDIR /home/mesh/app
|
2023-10-25 17:16:16 +00:00
|
|
|
RUN pip install -qq -r /home/mesh/app/requirements.txt --no-cache-dir
|