Yeuoly 1 年間 前
コミット
fb2f26782a
共有3 個のファイルを変更した7 個の追加13 個の削除を含む
  1. 5 3
      .github/workflows/build.yml
  2. 1 5
      docker/amd64/dockerfile
  3. 1 5
      docker/arm64/dockerfile

+ 5 - 3
.github/workflows/build.yml

@@ -63,11 +63,13 @@ jobs:
 
       - name: Tag Docker Images
         run: 
-          for tag in $(echo ${{ steps.meta.outputs.tags }} | tr ',' '\n'); do
-              docker tag dify-sandbox "$tag-${{ inputs.arch }}"
+          for tag in $(echo ${{ steps.meta.outputs.tags }} | tr ',' '\n')
+          do
+            docker tag dify-sandbox "$tag-${{ inputs.arch }}"
           done
       - name: Push Docker Image
         run:
-          for tag in $(echo ${{ steps.meta.outputs.tags }} | tr ',' '\n'); do
+          for tag in $(echo ${{ steps.meta.outputs.tags }} | tr ',' '\n')
+          do
             docker push $tag-${{ inputs.arch }}
           done

+ 1 - 5
docker/amd64/dockerfile

@@ -1,10 +1,6 @@
 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
+RUN apt-get clean && apt-get update && 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

+ 1 - 5
docker/arm64/dockerfile

@@ -1,10 +1,6 @@
 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
+RUN apt-get clean && apt-get update && 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