mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-27 12:48:01 +02:00
Testing docker builds using CI
This commit is contained in:
parent
fa3b161e01
commit
9403cbe964
2 changed files with 7 additions and 3 deletions
|
@ -1,15 +1,15 @@
|
|||
FROM node:lts-alpine AS build
|
||||
FROM node:latest AS build
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN --mount=type=cache,target=/root/.cache/npm \
|
||||
RUN --mount=type=cache,target=/root/.cache/node \
|
||||
--mount=type=cache,target=/app/node_modules \
|
||||
npm install --prefer-offline && \
|
||||
npm run build
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
FROM nginx:latest
|
||||
|
||||
COPY --from=build /app/dist/ /usr/share/nginx/html/
|
||||
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue