Update README with Docker deployment instructions and bump version to 0.0.1-beta in package.json

This commit is contained in:
MunchDev-oss
2026-01-04 16:41:39 -05:00
parent 9b6424dfa1
commit 4239125455
7 changed files with 240 additions and 1 deletions

38
Dockerfile Normal file
View File

@@ -0,0 +1,38 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY website/package*.json ./
# Install dependencies
RUN npm ci
# Copy source code
COPY website/ ./
# Build the application
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built files from builder stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration for SPA routing
RUN echo 'server { \
listen 80; \
server_name _; \
root /usr/share/nginx/html; \
index index.html; \
location / { \
try_files $uri $uri/ /index.html; \
} \
}' > /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]