Skip to content

Commit

Permalink
build: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
NaBuchholz committed Dec 1, 2023
1 parent 7e9a535 commit f39d7de
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:18.10.0-slim

USER node

RUN mkdir -p /home/node/app

WORKDIR /home/node/app

COPY --chown=node:node . .

RUN yarn install

RUN yarn build

ENV NODE_ENV=production

EXPOSE 3000

CMD ["yarn", "start"]

0 comments on commit f39d7de

Please sign in to comment.