mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 07:27:10 +00:00
Merge branch 'master' of gitlab.com:megazordpobeda/DataRush
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Stage 1: Base image
|
||||
FROM node:lts-alpine AS base
|
||||
# Stage 1: Build
|
||||
FROM node:lts-alpine AS builder
|
||||
|
||||
ENV FORCE_COLOR=0
|
||||
|
||||
@@ -7,11 +7,6 @@ RUN corepack enable
|
||||
|
||||
WORKDIR /opt/docusaurus
|
||||
|
||||
# Stage 2: Production build mode
|
||||
FROM base AS prod
|
||||
|
||||
WORKDIR /opt/docusaurus
|
||||
|
||||
COPY . /opt/docusaurus/
|
||||
|
||||
RUN npm ci --omit=dev
|
||||
@@ -19,7 +14,7 @@ RUN npm ci --omit=dev
|
||||
RUN npm run build
|
||||
|
||||
# Stage 3: Serve with nginx
|
||||
FROM nginx:stable-alpine AS serve
|
||||
FROM nginx:1.28-alpine-slim AS serve
|
||||
|
||||
COPY --from=builder /opt/docusaurus/build /usr/share/nginx/html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user