create dir before clearing

This commit is contained in:
2025-11-25 17:02:15 +00:00
parent 5c40cad2f9
commit eccee15a9a

View File

@@ -24,7 +24,8 @@ COPY vue/ ./
RUN npm install RUN npm install
RUN npm run build RUN npm run build
RUN rm -rf /etc/nginx/html/* \ RUN mkdir -p /etc/nginx/html \
\rm -rf /etc/nginx/html/* \
&& cp -r ./dist/* /etc/nginx/html/ && cp -r ./dist/* /etc/nginx/html/
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]