kopia lustrzana https://github.com/mate-dev/mmrelaynode
Move to entrypoint.sh script
rodzic
fd64e8f502
commit
3f046e333c
|
@ -1,13 +1,14 @@
|
|||
FROM python:3.11-slim-bookworm AS app
|
||||
LABEL "website"="https://github.com/mate-dev/mmrelaynode"
|
||||
RUN groupadd -g 1000 mesh && useradd -ml -u 1000 -g 1000 -s /bin/bash mesh
|
||||
RUN echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc
|
||||
RUN pip install --upgrade pip -qq
|
||||
RUN ln -s /home/mesh/.local/bin/meshtastic /bin/meshtastic
|
||||
USER mesh
|
||||
COPY --chown=mesh:mesh meshtastic-matrix-relay /home/mesh/app
|
||||
COPY --chown=mesh:mesh --chmod=744 entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
COPY --chown=mesh:mesh --chmod=744 wait-for-it.sh /home/mesh/.local/bin/wait-for-it.sh
|
||||
COPY --chown=mesh:mesh conf_wrapper.py /home/mesh/app/
|
||||
COPY --chown=mesh:mesh command_wrapper.py /home/mesh/app/
|
||||
WORKDIR /home/mesh/app
|
||||
RUN pip install -qq -r /home/mesh/app/requirements.txt --no-cache-dir
|
||||
RUN echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc
|
||||
RUN pip install -qq -r /home/mesh/app/requirements.txt --no-cache-dir
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
/home/mesh/.local/bin/wait-for-it.sh mmrelaynode:4403 -t 60
|
||||
python3 command_wrapper.py
|
||||
python3 conf_wrapper.py
|
||||
python3 main.py
|
Ładowanie…
Reference in New Issue