Skip to content

Commit

Permalink
fix nginx image build
Browse files Browse the repository at this point in the history
  • Loading branch information
matt--williams committed Dec 3, 2024
1 parent 6acb372 commit 847d249
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .docker/production/Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#############

# base image
FROM node:12.10.0 as build
FROM node:12.22 AS build

RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list
Expand All @@ -15,19 +15,21 @@ RUN apt-get update && apt-get install
WORKDIR /app

# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
ENV PATH=/app/node_modules/.bin:$PATH

# install and cache app dependencies
COPY ./clients/html/package.json /app/package.json
COPY ./clients/html/package-lock.json /app/package-lock.json
RUN npm ci
RUN rm -rf /app/package-lock.json /app/node_modules/
RUN npm install

# add app
COPY ./clients/html/ /app

# run tests
#RUN ng test --watch=false
#RUN ng e2e --port 4202
RUN npm ci

ARG API_URL
RUN sed -i -r "s/API_URL/$API_URL/g" /app/src/environments/environment.prod.ts
Expand Down

0 comments on commit 847d249

Please sign in to comment.