fix: dockerfile.security.missing-user-entrypoint.missing-user-entrypoint-Dockerfile

This commit is contained in:
kira-offgrid 2025-07-23 04:22:57 +00:00 committed by Emrik Östling
parent e5939aaa5d
commit 7883456cce

View file

@ -83,4 +83,10 @@ EXPOSE 3000/tcp
# used for calibre # used for calibre
ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox"
ENV NODE_ENV=production ENV NODE_ENV=production
# Create a non-root user to run the application
RUN useradd -r -u 1001 -g root -s /bin/false convertx
# Switch to non-root user
USER convertx
ENTRYPOINT [ "bun", "run", "./src/index.tsx" ] ENTRYPOINT [ "bun", "run", "./src/index.tsx" ]