Files
webSite/Dockerfile
Atakan 3adb87d40d
All checks were successful
Build & Deploy Vite App (Docker Compose) / build-and-deploy (push) Successful in 54s
added build confs
2025-11-28 16:31:20 +03:00

17 lines
416 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Stage 1: Build
FROM node:24-alpine as build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Production
FROM nginx:alpine
# Özel nginx ayarını kopyala
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Build aşamasından çıkan dosyaları Nginx'in servis klasörüne kopyala
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]