From 66701b26878185ce45aaaef74d6da677e258096f Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Mon, 25 Mar 2024 16:38:01 +0500 Subject: [PATCH] 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. --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e4f4c7..e245d9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ -FROM golang:1.21.3-alpine3.18 AS builder +FROM golang:1.22 AS builder -RUN apk add gcc -RUN apk add musl-dev +RUN apt install -y --no-install-recommends gcc WORKDIR /app @@ -12,7 +11,7 @@ ADD . . RUN go build -o main -FROM alpine:3.18.4 +FROM debian:bookworm-slim WORKDIR /app COPY --from=builder /app/main /usr/local/bin/phoenix