mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-28 13:37:43 +08:00
fix: revert to debian based image
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.22-alpine3.20 as builder
|
FROM golang:1.22 as builder
|
||||||
|
|
||||||
RUN apk add build-base
|
RUN apk add build-base
|
||||||
|
|
||||||
@@ -14,10 +14,10 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN CGO_ENABLED=1 go build -o polaris ./cmd/
|
RUN CGO_ENABLED=1 go build -o polaris ./cmd/
|
||||||
|
|
||||||
FROM alpine:3.20
|
FROM debian:12
|
||||||
|
|
||||||
WORKDIR /app
|
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 .
|
COPY --from=builder /app/polaris .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user