Skip to content

Commit

Permalink
ft(docker): dockerfile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantprateek committed Jan 26, 2025
1 parent 0b72df8 commit 09122a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Build stage
FROM golang:1.20-alpine AS builder
FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o /text2promql ./cmd/api/main.go
RUN CGO_ENABLED=0 GOOS=linux go build -o /txt2promql ./cmd/api/main.go

# Final stage
FROM alpine:latest
WORKDIR /app
COPY --from=builder /text2promql .
COPY --from=builder /txt2promql .
COPY configs/config.yaml ./configs/
EXPOSE 8080
CMD ["./txt2promql"]

0 comments on commit 09122a8

Please sign in to comment.