Now only using odit registry hosted images to speed up the build

This commit is contained in:
Nicolai Ort 2021-08-21 17:05:03 +02:00
parent 19e08bc52c
commit 3a82caad95
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
FROM library/node:16-alpine FROM registry.odit.services/hub/library/node:16-alpine
WORKDIR /app WORKDIR /app
COPY package.json ./ COPY package.json ./
RUN yarn RUN yarn
COPY ./ ./ COPY ./ ./
RUN yarn build RUN yarn build
FROM registry.odit.services/testing/nginx-brotli:3.13 FROM registry.odit.services/library/nginx-brotli:3.13
COPY --from=0 /app/build /usr/share/nginx/html COPY --from=0 /app/build /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf COPY ./nginx.conf /etc/nginx/nginx.conf