Testing docker builds using CI

This commit is contained in:
Shiny Nematoda 2022-12-13 06:23:43 +00:00
parent 19b66fefc1
commit 07022cdb3e
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D
2 changed files with 4 additions and 2 deletions

View file

@ -4,7 +4,9 @@ WORKDIR /app/
COPY . .
RUN npm install && \
RUN --mount=type=cache,target=/root/.cache/npm \
--mount=type=cache,target=/app/node_modules \
npm install --prefer-offline && \
npm run build
FROM nginx:stable-alpine