完善前端后台部署

This commit is contained in:
2024-02-18 23:35:23 +08:00
parent ae1b46ada0
commit 559022f558
4 changed files with 34 additions and 2 deletions

11
xlcs-admin/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM nginx:latest
EXPOSE 80
WORKDIR /app
# 替换nginx配置
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 将第一阶段的静态文件复制到nginx中
RUN rm -rf /usr/share/nginx/html
RUN mkdir /usr/share/nginx/html
COPY ./dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]