Files
PromptBase/Dockerfile
2025-07-27 13:10:05 -05:00

20 lines
316 B
Docker

# 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
# Serve with a lightweight server (e.g., serve)
RUN npm install -g serve
CMD ["serve", "dist", "-l", "3000"]