Skip to content

Commit

Permalink
docker: Updated dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Sep 24, 2024
1 parent ebf7e05 commit 5c9555a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
**/node_modules
**/node_modules
**/dist
**/.angular
**/.vscode
**/e2e
7 changes: 2 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ WORKDIR /app/frontend

ARG BASE_HREF=/

COPY --chown=node:node frontend/package*.json ./

RUN npm install

COPY --chown=node:node frontend/ ./

RUN npm run build
RUN npm install && \
npm run build

### Stage 2: Build the backend
FROM node:20 as build-backend
Expand Down

0 comments on commit 5c9555a

Please sign in to comment.