Skip to content

Commit

Permalink
Docker update
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds committed Oct 23, 2023
1 parent 8d9ca92 commit a3c5997
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions ppr-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM node:15-buster as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run dev

FROM nginx:1.18 as production-stage

ARG VCS_REF="missing"
ARG BUILD_DATE="missing"
Expand All @@ -9,13 +16,6 @@ ENV BUILD_DATE=${BUILD_DATE}
LABEL org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.build-date=${BUILD_DATE}

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx:1.18 as production-stage
COPY nginx.conf /etc/nginx/nginx.conf
RUN mkdir /app
COPY --from=build-stage /app/dist /app
Expand Down
2 changes: 1 addition & 1 deletion ppr-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": false,
"strict": true,
"noImplicitAny": false,
"strictNullChecks": false,
"jsx": "preserve",
Expand Down

0 comments on commit a3c5997

Please sign in to comment.