Missing user node
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inspect the image's Dockerfile or build entry point and compare its user setup with the referenced official Node.js Dockerfile. Add the non-root node user support requested, then verify the built container can run as that user and that the existing startup command still works.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I usually deploy Node.js docker container with user node to avoid deploying with root user. It seems like node-caged does not have node user and default user is root which is not safe in production deployment.
# # ###### final image ######
FROM node:24-slim
........
WORKDIR /app
COPY --chown=node --from=builder /app/ /app/
......
USER node
EXPOSE 4000
CMD ["./start.sh"]
For reference here is official node dockerfile:
https://github.com/nodejs/docker-node/blob/main/Dockerfile-slim.template#L3-L4
It is also recommened by docker-node Best Practices:
https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#non-root-user
- Lingua principale
- Shell
- Stelle
- 123
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di platformatic/node-caged
-
Add a LICENSE file Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
platformatic/node-caged#12 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Executable for developers Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
platformatic/node-caged#8 · 1 commento · 2 reazioni ·
-
More an idea than an issue Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
platformatic/node-caged#5 · 1 commento ·
Tutte le issue di platformatic/node-caged
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
huggingface/Repo2RLEnv#163 · 1 commento ·
-
setup tools wizard offers no GitHub auth path, and setup summary doesn't recognize `gh` CLI auth Apertaarea/auth comp/cli P3 tool/skills type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#121131 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
bradcypert/plum#53 ·
-
tmp_watchgod.sh exceeds the 1000-line cap; the Zone A guard helpers are a clean extraction seam Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
WingedGuardian/GENesis-AGI#2301 ·