Use some cached libraries in quay.io rather than trying to pull from docker, which is a rat jerk son of a gun, and is throttling us.

This commit is contained in:
Dan 2021-03-15 17:17:16 -04:00
parent b59ab2f9b5
commit e3402f52db
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
### STAGE 1: Build ###
FROM node AS builder
FROM quay.io/sartography/node:latest AS builder
RUN mkdir /app
WORKDIR /app
ADD package.json /app/
@ -9,9 +9,9 @@ ARG build_config=prod
RUN npm install && \
npm run build:$build_config
`
### STAGE 2: Run ###
FROM nginx:alpine
FROM quay.io/sartography/nginx:alpine
RUN set -x && apk add --update --no-cache bash libintl gettext curl
COPY --from=builder /app/dist/* /etc/nginx/html/