🐞 fix: Update docker config

This commit is contained in:
2025-07-28 17:01:24 +00:00
parent 679059a360
commit f62eff64a0
3 changed files with 12 additions and 33 deletions

View File

@@ -1,19 +1,15 @@
# Dockerfile
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Install dependencies
COPY app/package*.json ./
RUN npm install
# Copy source
COPY app .
# Build the static site
RUN npm run build
# Add this debug line:
RUN echo "Build starting..." && npm run build && echo "Build finished." && ls -la dist
# Serve with a lightweight server (e.g., serve)
RUN npm install -g serve
CMD ["serve", "dist", "-l", "3000"]
CMD ["serve", "dist", "-l", "4321"]