浏览代码

feat: docker中不在支持arm7

jeessy2 2 年之前
父节点
当前提交
e7b17babc0
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      .github/workflows/docker-image.yml
  2. 1 2
      Dockerfile

+ 1 - 1
.github/workflows/docker-image.yml

@@ -13,7 +13,7 @@ jobs:
     runs-on: ubuntu-latest
     env:
       DOCKER_REPO: jeessy/backup-x
-      DOCKER_PLATFORMS: linux/amd64,linux/arm,linux/arm64
+      DOCKER_PLATFORMS: linux/amd64,linux/arm64
     steps:
       - name: Checkout
         uses: actions/checkout@v3

+ 1 - 2
Dockerfile

@@ -4,7 +4,6 @@ FROM golang:1.19 AS builder
 WORKDIR /app
 COPY . .
 RUN go env -w GO111MODULE=on \
-    && go env -w GOPROXY=https://goproxy.cn,direct \
     && make clean test build
 
 # build s3sync
@@ -31,7 +30,7 @@ RUN apt-get -y update \
 # https://www.postgresql.org/download/linux/debian/
 RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' \
     && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
-    && apt-get update
+    && apt-get -y update
 
 RUN apt-get install -y postgresql-client-14 \
     && apt-get install -y default-mysql-client