This commit is contained in:
2025-06-30 13:08:35 +00:00
parent 1bf921a56e
commit 841cb61acf
579 changed files with 0 additions and 70142 deletions

View File

@@ -1,35 +0,0 @@
# React App Dockerfile
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
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]