更新 Docker 镜像配置,清理 archive 文件
- 删除 archive/bbs-go 等历史代码 - 新增 nginx、frpc-client Docker 镜像配置 - 添加 .gitignore 忽略大文件
This commit is contained in:
24
nginx/Dockerfile
Normal file
24
nginx/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
# Nginx Docker image
|
||||
# 包含自定义配置的反向代理
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
LABEL maintainer="StoneLan"
|
||||
LABEL description="Nginx reverse proxy container"
|
||||
|
||||
# 复制 nginx 配置
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY conf.d /etc/nginx/conf.d
|
||||
|
||||
# 创建必要的目录
|
||||
RUN mkdir -p /var/log/nginx && \
|
||||
mkdir -p /etc/nginx/ssl && \
|
||||
chown -R nginx:nginx /var/log/nginx && \
|
||||
chown -R nginx:nginx /etc/nginx
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user