Skip to content

Commit

Permalink
Added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed May 20, 2023
1 parent 5400889 commit 0a80e76
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.github/
coverage/
dist/
node_modules/

.env
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:18-alpine AS base
WORKDIR /project
COPY . .
RUN npm install

FROM base AS test

FROM base AS prod
RUN npm run build
CMD npm run start
EXPOSE 3000

0 comments on commit 0a80e76

Please sign in to comment.