build utils

This commit is contained in:
2024-04-12 22:44:02 +03:00
parent 8df8f5a2e9
commit f6d316cb5e
7 changed files with 68 additions and 4 deletions

11
nginx/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:21-alpine as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY ./frontend/app .
RUN npm ci
RUN npm run build
FROM nginx:1.25.4-alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]