fix: dockerfile.security.missing-user-entrypoint.missing-user-entrypoint-Dockerfile
This commit is contained in:
parent
e5939aaa5d
commit
7883456cce
1 changed files with 6 additions and 0 deletions
|
|
@ -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" ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue