V1.1.0 Responsive
Footer angepasst Lauffähigkeit auf Server verbessert deploy.sh mit for loop
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# Build stage
|
||||
FROM node:20-alpine AS builder
|
||||
FROM --platform=$BUILDPLATFORM node:20-alpine AS builder
|
||||
|
||||
# Build arguments
|
||||
ARG BUILD_DATE=unknown
|
||||
ARG VERSION=unknown
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -12,14 +18,18 @@ RUN npm ci
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build app
|
||||
# Build app with build info
|
||||
ENV VITE_BUILD_DATE=${BUILD_DATE}
|
||||
ENV VITE_VERSION=${VERSION}
|
||||
RUN npm run build
|
||||
|
||||
# Production stage
|
||||
FROM nginx:alpine
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
||||
|
||||
# Copy built app from builder
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
COPY --from=builder /app/dist .
|
||||
|
||||
# Copy nginx configuration
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
Reference in New Issue
Block a user