Skip to content
Snippets Groups Projects

Fix build client

Merged Simon Malesys requested to merge fix-build-client into master
4 files
+ 4532
3745
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
6
#################################################
# container shipping client source and dependencies
#################################################
FROM node:16-buster as client-base-container
FROM node:16.20-alpine3.18 as client-base-container
ARG API_URL
RUN mkdir /client \
&& cd /client \
&& npm install yarn
&& cd /client
WORKDIR /client
COPY package.json /client/
COPY yarn.lock /client/
RUN yarn install
COPY . /client
#################################################
# container that will generate the client
#################################################
@@ -27,11 +26,10 @@ ARG API_URL
RUN yarn run generate
#################################################
# container that will serve the client
#################################################
FROM nginxinc/nginx-unprivileged:latest as client-static-serve
FROM nginxinc/nginx-unprivileged:stable-alpine as client-static-serve
COPY --from=client-static-build /client/dist /usr/share/nginx/html
COPY --from=client-static-build /client/nginx.conf /etc/nginx/conf.d/default.conf
Loading