fix: revert to debian based image

This commit is contained in:
Simon Ding
2024-07-22 14:41:38 +08:00
parent 9417e87030
commit 912482ba4a

View File

@@ -1,4 +1,4 @@
FROM golang:1.22-alpine3.20 as builder
FROM golang:1.22 as builder
RUN apk add build-base
@@ -14,10 +14,10 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=1 go build -o polaris ./cmd/
FROM alpine:3.20
FROM debian:12
WORKDIR /app
RUN apk add --no-cache bash ca-certificates
RUN apt-get update && apt-get -y install ca-certificates
COPY --from=builder /app/polaris .