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

Commit

Permalink
webapp: add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Mar 22, 2023
1 parent 6d1f5fe commit bfeac27
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist/
/node_modules/
16 changes: 16 additions & 0 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:16-alpine AS builder

WORKDIR /webapp

COPY package*.json .
RUN npm ci

COPY . .
RUN npx ng build --prod

FROM joseluisq/static-web-server:2 AS runner

COPY --from=builder /webapp/dist /webapp

WORKDIR /webapp
ENV SERVER_ROOT=/webapp

0 comments on commit bfeac27

Please sign in to comment.