build: specify the user in the development Dockerfile

This commit is contained in:
Matouš Volf
2024-08-17 21:33:01 +02:00
parent 97d21fc442
commit 3980189ae2
2 changed files with 18 additions and 12 deletions

View File

@ -11,6 +11,13 @@ RUN npm install
COPY docker/dev/app/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN chown -R 1000:1000 /srv/app
RUN chown -R 1000:1000 /usr/local/cargo
RUN mkdir -p /.local/share/dioxus
RUN chown -R 1000:1000 /.local/share/dioxus
HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1
USER root
USER 1000:1000
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]