build(docker)!: update base images, migrate to debian

The transition to debian was caused by problems when building the sqlite3 driver.
I couldn't find a solution.
This commit is contained in:
Ivan R. 2024-03-25 16:38:01 +05:00
parent 8a7337694f
commit 66701b2687
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C

View file

@ -1,7 +1,6 @@
FROM golang:1.21.3-alpine3.18 AS builder FROM golang:1.22 AS builder
RUN apk add gcc RUN apt install -y --no-install-recommends gcc
RUN apk add musl-dev
WORKDIR /app WORKDIR /app
@ -12,7 +11,7 @@ ADD . .
RUN go build -o main RUN go build -o main
FROM alpine:3.18.4 FROM debian:bookworm-slim
WORKDIR /app WORKDIR /app
COPY --from=builder /app/main /usr/local/bin/phoenix COPY --from=builder /app/main /usr/local/bin/phoenix