Add non root user for twenty website docker file (#10470)

- Create user 1000 and give it the necessary permissions
This commit is contained in:
Raphaël Bosi
2025-02-25 11:51:09 +01:00
committed by GitHub
parent 3f7bb4f958
commit e77ba2be52

View File

@ -26,4 +26,9 @@ WORKDIR /app/packages/twenty-website
LABEL org.opencontainers.image.source=https://github.com/twentyhq/twenty
LABEL org.opencontainers.image.description="This image provides a consistent and reproducible environment for the website."
RUN chown -R 1000 /app
# Use non root user with uid 1000
USER 1000
CMD ["/bin/sh", "-c", "npx nx start"]