This commit is contained in:
2025-04-05 21:32:01 +00:00
parent fe90ca3698
commit b753252b3c
201 changed files with 143 additions and 78 deletions

35
reader/Dockerfile Normal file
View File

@@ -0,0 +1,35 @@
# Use Node.js as the base image
FROM node:20-alpine AS build
# Set working directory
WORKDIR /app
# Install pnpm globally
RUN npm install -g pnpm
# Copy package.json and pnpm-lock.yaml
COPY package.json pnpm-lock.yaml* ./
# Install dependencies with pnpm
RUN pnpm install --frozen-lockfile
# Copy the rest of the application
COPY . .
# Build the application
RUN pnpm run build
# Production stage
FROM nginx:alpine AS production
# Copy built assets from build stage
COPY --from=build /app/dist /usr/share/nginx/html
# Copy nginx configuration if needed
# COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]