Skip to content

Commit

Permalink
fix docker file for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Suryansh5545 committed Aug 5, 2023
1 parent cac7b36 commit d33481c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions docker/prod/nodejs_v1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@ FROM node:18.16.0

ARG NODE_ENV
RUN npm install -g @angular/cli@16.0.4
RUN mkdir /code

# Copy codebase
COPY . /code

WORKDIR /code

ADD frontend/package.json frontend/yarn.lock /code/
COPY frontend/package.json frontend/yarn.lock /code/
RUN npm update
RUN yarn install
ENV PATH="/code/node_modules/.bin:$PATH"
ENV PATH="/code/node_modules/.bin:$PATH"
COPY frontend/ /code
RUN ng build --configuration=${NODE_ENV}
RUN ng build --prod --configuration=${NODE_ENV}

FROM nginx:1.25.1-alpine
ARG NODE_ENV
Expand Down

0 comments on commit d33481c

Please sign in to comment.