added deploy binary to prod backend container

This commit is contained in:
2026-01-17 23:32:59 +01:00
parent 483dd4c72b
commit 04b21ca42b
+3 -1
View File
@@ -15,6 +15,7 @@ COPY . .
# Build the Go binary
RUN go build -v -o server cmd/main.go
RUN go build -v -o deploy cmd/deploy/main.go
# =========== 2) Runtime stage ===========
FROM alpine:3.23
@@ -36,7 +37,8 @@ ENV CHROME_BIN=/usr/bin/chromium-browser \
WORKDIR /app
# Copy the compiled binary from builder stage
COPY --from=builder /app/server /app
COPY --from=builder /app/server /app/server
COPY --from=builder /app/deploy /app/deploy
COPY --from=builder /app/templates /app/default_templates
# Expose port