Skip to content

Commit

Permalink
chore(docker): Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cicoub13 authored Jun 20, 2024
1 parent fa9e808 commit 316cf65
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:18

RUN mkdir -p /home/node/app \
&& chown -R node:node /home/node/app

WORKDIR /home/node/app

ENV NODE_ENV=production

EXPOSE 3000

USER node

COPY --chown=node:node package.json /home/node/app/package.json
COPY --chown=node:node yarn.lock /home/node/app/yarn.lock
COPY --chown=node:node dist /home/node/app/dist

RUN yarn install

CMD ["node", "dist/src/index.js"]

0 comments on commit 316cf65

Please sign in to comment.