Testing docker builds using CI

This commit is contained in:
Shiny Nematoda 2022-12-13 06:55:35 +00:00
parent 9403cbe964
commit 72ea301701
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D

View file

@ -1,4 +1,4 @@
FROM node:latest AS build FROM --platform=$BUILDPLATFORM node:lts AS build
WORKDIR /app/ WORKDIR /app/
@ -9,7 +9,7 @@ RUN --mount=type=cache,target=/root/.cache/node \
npm install --prefer-offline && \ npm install --prefer-offline && \
npm run build npm run build
FROM nginx:latest FROM --platform=$BUILDPLATFORM nginx:stable
COPY --from=build /app/dist/ /usr/share/nginx/html/ COPY --from=build /app/dist/ /usr/share/nginx/html/
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf COPY docker/nginx.conf /etc/nginx/conf.d/default.conf