Files
HarunCAN_Studio_FE/Dockerfile
Fahri Can df0b60c97a
All checks were successful
HarunCAN Studio FE Deploy 🎨 / build-and-deploy (push) Successful in 41s
main
2026-03-17 14:00:23 +03:00

19 lines
487 B
Docker
Raw 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.
# --- 1. Build Katmanı ---
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
# Build-time env (vite.config.ts'de kullanılıyor)
ARG GEMINI_API_KEY
ENV GEMINI_API_KEY=$GEMINI_API_KEY
RUN npm run build
# --- 2. Production Katmanı (Nginx ile statik serve) ---
FROM nginx:alpine AS runner
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]