build: 打包dist

This commit is contained in:
2026-01-02 00:43:24 +08:00
parent b35964baf0
commit 335ca6e554
3 changed files with 45 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM nginx:alpine
# 删除 nginx 默认配置
RUN rm /etc/nginx/conf.d/default.conf
# 创建配置文件
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 将构建好的文件复制到 nginx
COPY admin /usr/share/nginx/html
# 暴露端口
EXPOSE 80
# 启动 nginx
CMD ["nginx", "-g", "daemon off;"]