mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
24 lines
442 B
Docker
24 lines
442 B
Docker
FROM node:20-alpine as build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY frontend/package*.json ./
|
|
|
|
RUN npm install
|
|
|
|
COPY frontend .
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY docker/frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Создаем директории для сертификатов
|
|
RUN mkdir -p /etc/letsencrypt
|
|
RUN mkdir -p /var/www/certbot
|
|
|
|
EXPOSE 80 443
|
|
|
|
CMD ["nginx", "-g", "daemon off;"] |