docker_pack/ariang/Dockerfile
2024-09-12 07:18:10 +08:00

21 lines
628 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用 debian:stable-slim 作为基础镜像
FROM debian:stable-slim
# 安装 Nginx 和 apache2-utils用于生成密码文件
RUN apt-get update && \
apt-get install -y nginx apache2-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# 复制配置文件和启动脚本
COPY default.auth /etc/nginx/sites-available/default.auth
COPY default.noauth /etc/nginx/sites-available/default.noauth
COPY AriaNg /AriaNg
COPY start.sh /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/start.sh
# 暴露 80 端口
EXPOSE 80
# 使用启动脚本作为容器的入口点
ENTRYPOINT ["/usr/local/bin/start.sh"]