Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ommann committed Aug 8, 2024
1 parent b73e537 commit faf6927
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openshift/rahti2/devel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY . /app
WORKDIR /app
RUN chown -R node:node /app
USER node
RUN npm install
RUN npm ci
RUN npm run build:ssr

# Stage 2: Serve Angular application
Expand All @@ -22,6 +22,10 @@ COPY --from=builder /app/dist/ /dist/
## SSR build warns from non existent stylesheet in 'browser/'
# ## Manually copy this file from localized build to suppress this warning
# COPY --from=builder /app/dist/browser/fi/*.css /dist/browser/

# Copy dependencies
COPY --from=builder /app/node_modules/ /node_modules/

WORKDIR /

RUN chown -R node:node /dist
Expand Down

0 comments on commit faf6927

Please sign in to comment.