What a mess

This commit is contained in:
Joan
2025-11-07 15:27:13 +01:00
parent 0b79b3ae59
commit 33cc9586c2
130 changed files with 29819 additions and 1175 deletions

33
Dockerfile.pwa Normal file
View File

@@ -0,0 +1,33 @@
# Build stage
FROM node:20-alpine AS build
WORKDIR /app
# Copy package files
COPY pwa/package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY pwa/ ./
# Build the application
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built assets from build stage
COPY --from=build /app/dist /usr/share/nginx/html
# Copy game images
COPY images/ /usr/share/nginx/html/images/
# Copy nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]