mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-04-04 19:10:56 -04:00
19 lines
235 B
Docker
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"]
|
|
|
|
|