Skip to content

Commit

Permalink
🔧 Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Irori235 committed Mar 14, 2024
1 parent 763737d commit 063340e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:20 AS builder

WORKDIR /app
COPY ./package.json ./package-lock.json ./
RUN npm ci --only=prod
COPY . .

RUN npm run build

FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html

EXPOSE 80
CMD [ "nginx", "-g", "daemon off;" ]

0 comments on commit 063340e

Please sign in to comment.