Files
python-oauth2-proxy-k8s/frontend/Dockerfile
2025-10-01 15:04:07 +05:00

25 lines
478 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.

# Сборка приложения
FROM node:20-alpine as build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Production образ с nginx
FROM nginx:alpine
# Копирование собранного приложения
COPY --from=build /app/dist /usr/share/nginx/html
# Конфигурация nginx для проксирования API
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]