mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-20 03:40:29 +05:00
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:
parent
8a7337694f
commit
66701b2687
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue