From bb3269473e4eb03fa3b739e0cf488def3730ba74 Mon Sep 17 00:00:00 2001 From: Christian Roessner Date: Wed, 15 May 2024 14:30:49 +0200 Subject: [PATCH] Fix build --- .github/workflows/docker-features.yaml | 4 ++-- .github/workflows/docker-stable.yaml | 4 ++-- Dockerfile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-features.yaml b/.github/workflows/docker-features.yaml index 2c702713..1b435211 100644 --- a/.github/workflows/docker-features.yaml +++ b/.github/workflows/docker-features.yaml @@ -27,7 +27,7 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/nauthilus:dev \ No newline at end of file + ghcr.io/${{ github.repository_owner }}/nauthilus:dev diff --git a/.github/workflows/docker-stable.yaml b/.github/workflows/docker-stable.yaml index a87248f8..05b87834 100644 --- a/.github/workflows/docker-stable.yaml +++ b/.github/workflows/docker-stable.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -30,4 +30,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/nauthilus:latest \ No newline at end of file + ghcr.io/${{ github.repository_owner }}/nauthilus:latest diff --git a/Dockerfile b/Dockerfile index d97eda50..8038f0d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,9 @@ WORKDIR /build COPY . ./ # Set necessarry environment vairables and compile the app -ENV CGO_ENABLED=1 GOOS=linux GOARCH=amd64 +ENV CGO_ENABLED=0 RUN apk add --no-cache build-base -RUN cd server && go build -mod=vendor -tags="sonic avx register2fa" -ldflags="-s" -o nauthilus . +RUN cd server && go build -mod=vendor -tags="register2fa" -ldflags="-s" -o nauthilus . RUN cd docker-healthcheck && go build -mod=vendor -ldflags="-s" -o healthcheck . RUN cd contrib/smtp-server && go build -mod=vendor -ldflags="-s" -o fakesmtp . RUN cd contrib/imap-server && go build -mod=vendor -ldflags="-s" -o fakeimap .