added deploy binary to prod backend container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user