Skip to content

Commit

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

ARG NODE_ENV
RUN npm install -g @angular/[email protected]
RUN mkdir /code

# Copy codebase
COPY . /code

WORKDIR /code
COPY frontend/package.json frontend/yarn.lock /code/
RUN npm update

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

FROM nginx:1.25.1-alpine
ARG NODE_ENV
Expand Down

0 comments on commit fac060c

Please sign in to comment.