initial commit
Some checks failed
Deployment CI/CD / validate (push) Has been cancelled
Deployment CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-19 20:57:09 +03:30
commit b4c6b3c012
13 changed files with 649 additions and 0 deletions

30
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
FROM node:20-alpine AS builder
WORKDIR /app
RUN npm config set registry https://package-mirror.liara.ir/repository/npm/ --global
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Production image
FROM nginx:alpine
# Copy built files to nginx
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]