33 lines
816 B
Docker
33 lines
816 B
Docker
FROM ubuntu:22.04
|
|
|
|
# 设置环境变量避免交互式安装
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# RUN apt-get update && \
|
|
# apt-get install -y ca-certificates && \
|
|
# update-ca-certificates && \
|
|
# rm -rf /var/lib/apt/lists/*
|
|
|
|
# RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list && \
|
|
# sed -i 's@//.*security.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list
|
|
|
|
# 更新系统并安装必要软件
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
git \
|
|
jq \
|
|
python3 \
|
|
python3-yaml \
|
|
supervisor \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# 创建必要目录
|
|
RUN mkdir -p /data /etc/supervisor/conf.d /var/log/supervisor
|
|
|
|
# 设置工作目录
|
|
WORKDIR /data
|
|
|
|
# 使用自定义入口点
|
|
ENTRYPOINT ["/data/entrypoint.sh"]
|