Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Susmita-Dey committed Nov 22, 2023
2 parents f2a826f + 7aaedf3 commit a27bedc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
.github
.gitignore
*.md
LICENSE
.husky
CNAME
node_modules
build
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM --platform=linux/amd64 node:16-alpine
WORKDIR ./
FROM node:16-alpine AS deps
COPY package.json ./
RUN npm install

FROM deps AS builder
COPY . .
RUN npm run build

FROM node:16-alpine AS runner
COPY --from=builder build ./build
RUN npm install -g serve
EXPOSE 3000
CMD [ "npm", "start" ]
CMD ["serve", "-s", "build"]

0 comments on commit a27bedc

Please sign in to comment.