✨feature: Add docker support files
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user