diff --git a/Dockerfile b/Dockerfile index b7df088..7c1ebca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,5 @@ FROM mirror.gcr.io/library/golang:1.23-alpine AS builder WORKDIR /app COPY backend/ . -RUN ls -la +RUN echo '--- FILE LISTING ---' && ls -R && echo '--- END LISTING ---' && exit 1 RUN go mod download -RUN CGO_ENABLED=0 GOOS=linux go build -ldflags=" -s -w\ -o main . - -FROM alpine:latest -WORKDIR /app -RUN apk --no-cache add ca-certificates tzdata -COPY --from=builder /app/main . -COPY --from=builder /app/migrations ./migrations -CMD [\.\/main\]