소스 검색

feat: amd64

Yeuoly 1 년 전
부모
커밋
e1194783ff
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      docker/amd64/dockerfile

+ 5 - 3
docker/amd64/dockerfile

@@ -1,11 +1,13 @@
 FROM python:3.10-slim
 
+# use aliyun mirror
+RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources \
+    && sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources
+RUN apt-get clean && apt-get update 
+RUN apt-get install -y pkg-config libseccomp-dev wget xz-utils
 # copy main binary to /main
 COPY main /main
 COPY conf/config.yaml /conf/config.yaml
-
-RUN apt-get clean && apt-get update 
-RUN apt-get install -y pkg-config libseccomp-dev wget xz-utils
 RUN rm -rf /var/lib/apt/lists/* \
     && chmod +x /main \
     && pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple jinja2 requests httpx \