update
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -0,0 +1,13 @@
|
||||
# 使用官方 Nginx 镜像作为基础
|
||||
FROM nginx:alpine
|
||||
|
||||
# 删除默认的 Nginx 配置
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
# 将构建好的静态文件复制到 Nginx 目录
|
||||
COPY blog/public /usr/share/nginx/html
|
||||
|
||||
# 暴露 80 端口
|
||||
EXPOSE 80
|
||||
|
||||
# 启动 Nginx
|
||||
Reference in New Issue
Block a user