chore: bump to go1.24

This commit is contained in:
sentriz
2025-07-30 11:45:36 +01:00
parent 3fc9d5dcb5
commit c2e5eb3f0f
6 changed files with 115 additions and 81 deletions

No files matched your search

+8 -8
View File
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:experimental
FROM golang:1.23-alpine AS builder
FROM golang:1.24-alpine3.22 AS builder
RUN apk add -U --no-cache \
build-base \
ca-certificates \
@@ -14,7 +14,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
GOOS=linux go build -o gonic cmd/gonic/gonic.go
FROM alpine:3.20
FROM alpine:3.22
RUN apk add -U --no-cache \
ffmpeg \
mpv \
@@ -30,10 +30,10 @@ COPY --from=builder \
/bin/
VOLUME ["/cache", "/data", "/music", "/podcasts"]
EXPOSE 80
ENV GONIC_DB_PATH /data/gonic.db
ENV GONIC_LISTEN_ADDR :80
ENV GONIC_MUSIC_PATH /music
ENV GONIC_PODCAST_PATH /podcasts
ENV GONIC_PLAYLISTS_PATH /playlists
ENV GONIC_CACHE_PATH /cache
ENV GONIC_DB_PATH=/data/gonic.db
ENV GONIC_LISTEN_ADDR=:80
ENV GONIC_MUSIC_PATH=/music
ENV GONIC_PODCAST_PATH=/podcasts
ENV GONIC_PLAYLISTS_PATH=/playlists
ENV GONIC_CACHE_PATH=/cache
CMD ["gonic"]