From 9e3dbe3a3317458276a2ab3625c5265d8ea85c85 Mon Sep 17 00:00:00 2001 From: GoHorse Deploy Date: Thu, 5 Feb 2026 12:57:02 +0000 Subject: [PATCH] fix: add root Dockerfile with backend context --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..08fa43d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM mirror.gcr.io/library/golang:1.23-alpine AS builder +WORKDIR /app +COPY backend/go.mod backend/go.sum ./ +RUN go mod download +COPY backend/ . +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\]