Working on user support

pull/1618/head
HeDo 2023-03-06 21:28:23 +01:00
rodzic ffa7871c33
commit 5f80e0bb6a
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -51,5 +51,12 @@ RUN bash configure.sh installruntimedepsonly \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& bash run.sh --help \
&& bash -c "eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'"
# Switch to appuser
RUN adduser --disabled-password --gecos "" --uid 1000 appuser
RUN chown -R appuser /code
RUN chown -R appuser /usr/local
USER appuser
# Entry point
ENTRYPOINT ["python3", "/code/run.py"]