From bbddd08d247c76ff610b225ba8b98390a3e5c1b8 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Sun, 22 Dec 2024 22:22:05 +0100 Subject: [PATCH] fix path and add go get to docker --- .github/workflows/lint.yml | 2 +- cmd/auth/dockerfile | 2 ++ cmd/backend/dockerfile | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c3e3925..d1c32ed 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,4 +20,4 @@ jobs: uses: golangci/golangci-lint-action@v4 with: version: latest - working-directory: ./... + working-directory: . diff --git a/cmd/auth/dockerfile b/cmd/auth/dockerfile index 90c29a6..4432ddb 100644 --- a/cmd/auth/dockerfile +++ b/cmd/auth/dockerfile @@ -4,6 +4,8 @@ WORKDIR /app COPY . . +RUN go get ./... + RUN GOOS=linux GOARCH=arm64 go build -o auth-service RUN apk update && apk add ca-certificates && update-ca-certificates diff --git a/cmd/backend/dockerfile b/cmd/backend/dockerfile index 45bce00..29ec584 100644 --- a/cmd/backend/dockerfile +++ b/cmd/backend/dockerfile @@ -4,6 +4,8 @@ WORKDIR /app COPY . . +RUN go get ./... + RUN GOOS=linux GOARCH=arm64 go build -o backend RUN apk update && apk add ca-certificates && update-ca-certificates