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

39
Dockerfile.pwa.new Normal file
View File

@@ -0,0 +1,39 @@
# Build stage for PWA
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 - simple Python server for static files
FROM python:3.11-slim
WORKDIR /usr/share/app
# Copy built assets from build stage
COPY --from=build /app/dist ./dist
# Copy game images
COPY images/ ./dist/images/
# Install simple HTTP server
RUN pip install --no-cache-dir aiofiles
# Copy a simple static file server script
COPY pwa/server.py ./
# Expose port
EXPOSE 80
# Start the server
CMD ["python", "server.py"]