@@ -7,6 +7,17 @@
|
|||||||
# Also used for the lite (unmanaged) deployment.
|
# Also used for the lite (unmanaged) deployment.
|
||||||
# ==========================================
|
# ==========================================
|
||||||
|
|
||||||
|
# Build stage
|
||||||
|
FROM alpine:3.19 AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
RUN apk add --no-cache bash coreutils
|
||||||
|
|
||||||
|
COPY build.sh ./
|
||||||
|
COPY src ./src
|
||||||
|
|
||||||
|
RUN chmod +x build.sh && ./build.sh
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
@@ -14,7 +25,7 @@ FROM nginx:alpine
|
|||||||
COPY nginx.frontend.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.frontend.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Built SPA files
|
# Built SPA files
|
||||||
COPY src /app/standalone /usr/share/nginx/html
|
COPY --from=builder /app/standalone /usr/share/nginx/html
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user