From cc84787fc3a506ff9b84eed3eae8a2f52eb2b226 Mon Sep 17 00:00:00 2001 From: ITQ Date: Mon, 15 Dec 2025 23:06:02 +0300 Subject: [PATCH] chore: removed redundant Containerfile --- Containerfile.auth | 48 ---------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 Containerfile.auth diff --git a/Containerfile.auth b/Containerfile.auth deleted file mode 100644 index 8b2d5d0..0000000 --- a/Containerfile.auth +++ /dev/null @@ -1,48 +0,0 @@ -# syntax=docker/dockerfile:1 -ARG GOARCH=amd64 -ARG GOOS=linux -ARG CGO_ENABLED=0 -ARG BUILD_TIME=unknown -ARG VERSION=unknown - -# Stage 1: Build -FROM docker.io/golang:1.24-alpine AS build - -ARG GOOS -ARG GOARCH -ARG CGO_ENABLED -ARG BUILD_TIME -ARG VERSION - -WORKDIR /src - -COPY go.mod go.sum ./ -RUN --mount=type=cache,target=/root/.cache/go-build \ - --mount=type=cache,target=/go/pkg/mod \ - go mod download - -COPY . . - -RUN --mount=type=cache,target=/root/.cache/go-build \ - --mount=type=cache,target=/go/pkg/mod \ - CGO_ENABLED=${CGO_ENABLED} \ - GOOS=${GOOS} \ - GOARCH=${GOARCH} \ - go build -trimpath \ - -ldflags "-s -w -X main.BuildTime=${BUILD_TIME} -X main.Version=${VERSION}" \ - -o /out/auth ./cmd/auth && \ - chmod +x /out/auth - -# Stage 2: Runtime -FROM gcr.io/distroless/static-debian13:latest AS runtime - -ARG BUILD_TIME -ARG VERSION - -WORKDIR /app - -COPY --from=build --chown=1000:1000 /out/auth /app/bin/auth - -EXPOSE 8081 50052 - -ENTRYPOINT ["/app/bin/auth"]