added build step to docker file, because caprover and some another paas systems cant build docker file

This commit is contained in:
سامان بهشتیان (YiiMan) committed 2024-12-23 19:11:00 +00:00
1 parent 9019cb1500
commit cd7aaf984a
1 file changed
+2
+2
View File
@@ -2,6 +2,8 @@
FROM nginx:alpine AS build
RUN rm -rf /etc/nginx/conf.d/*
COPY nginx.conf /etc/nginx/
RUN npm image
RUN npm run build
COPY public /usr/share/nginx/html/
EXPOSE 80