From 66946f118594c0888a996549fbbdd0b7ac7bc4c1 Mon Sep 17 00:00:00 2001 From: linuxMate Date: Wed, 29 Nov 2023 07:35:08 +0300 Subject: [PATCH] try 2 --- build/auth.Dockerfile | 2 ++ docker-compose.yml | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build/auth.Dockerfile b/build/auth.Dockerfile index b9719d8a..1df83dea 100644 --- a/build/auth.Dockerfile +++ b/build/auth.Dockerfile @@ -4,6 +4,8 @@ FROM golang:1.21.0-alpine AS builder COPY . /github.com/go-park-mail-ru/2023_2_Hamster/ WORKDIR /github.com/go-park-mail-ru/2023_2_Hamster/ +RUN ls -la + RUN go mod download && go mod tidy RUN go clean --modcache RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -o auth ./cmd/auth/main.go diff --git a/docker-compose.yml b/docker-compose.yml index 3e08b8dd..aaff67a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -113,10 +113,10 @@ services: - hamster-net hammywallet-api: - container_name: ${CONTAINER_NAME} - image: ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA_SHORT} - # container_name: hammywallet-api - # image: codemaster482/hammywallet:latest + #container_name: ${CONTAINER_NAME} + #image: ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA_SHORT} + container_name: hammywallet-api + image: codemaster482/hammywallet:latest env_file: - .env restart: always