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

19 lines
235 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
EXPOSE 3000
USER nobody
ENTRYPOINT ["node"]
CMD ["src/app.js"]