added some
All checks were successful
Build & Deploy Frontend / build-push-deploy (push) Successful in 1m45s

This commit is contained in:
Ali 2025-08-30 11:57:49 +05:30
parent 20e95c2fb6
commit af6fd7bcad
213 changed files with 35 additions and 0 deletions

25
frontend/Dockerfile Normal file
View File

@ -0,0 +1,25 @@
# Stage 1: Build the Vite React App
FROM node:18-alpine AS builder
WORKDIR /app
# Copy package manager files & install dependencies
COPY package*.json bun.lockb ./
RUN npm install --legacy-peer-deps
# Copy the rest of the project & build
COPY . .
RUN npm run build
# Stage 2: Serve with Nginx
FROM nginx:alpine
# Remove default nginx static files
RUN rm -rf /usr/share/nginx/html/*
# Copy built frontend from builder
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy custom nginx.conf (you already have it)
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

10
frontend/nginx.conf Normal file
View File

@ -0,0 +1,10 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri /index.html;
}
}

View File

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Some files were not shown because too many files have changed in this diff Show More