🐞 fix: Update docker config
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user