odin-codespace/nodejs-mini-message-board/Dockerfile
2024-12-27 22:33:44 -05:00

17 lines
222 B
Docker

FROM node:23-alpine
COPY package.json package-lock.json /app
WORKDIR /app
RUN npm install . && chown nobody:nobody /app
COPY --chown=nobody:nobody ./src /app/src
USER nobody
ENTRYPOINT ["node"]
CMD ["src/app.js"]