/
kreyndelHam
/
Konstructorium
Обзор
Документация
Войти
/
kreyndelHam
/
Konstructorium
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
dev
frontend/Dockerfile
30 строк
546 B
MihahamYT
frontend first attempt
21 апр 2026, 23:04
21 апр 2026, 23:04
c0b341f
Код
Авторство
О чём код?
# Build stage FROM node:18-alpine as build WORKDIR /app # Copy package files COPY frontend/package.json ./ # Install dependencies (npm install works with or without package-lock.json) RUN npm install # Copy source code COPY frontend/ . # Build the app RUN npm run build # Production stage FROM nginx:alpine # Copy built files from build stage COPY --from=build /app/dist /usr/share/nginx/html # Copy nginx configuration COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf # Expose port EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]