add dockerfile

This commit is contained in:
Artem
2026-09-30 11:33:45 +03:00
parent 28d0e3edf6
commit 3a711fb8f0
3 changed files with 37 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm i
COPY . .
RUN npm run build
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist/gorodar-front/browser /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]