chore: bump docker go/alpine versions
This commit is contained in:
40
Dockerfile
40
Dockerfile
@@ -1,13 +1,13 @@
|
|||||||
FROM golang:1.16-alpine AS builder
|
FROM golang:1.17-alpine AS builder
|
||||||
RUN apk add -U --no-cache \
|
RUN apk add -U --no-cache \
|
||||||
build-base \
|
build-base \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git \
|
git \
|
||||||
sqlite \
|
sqlite \
|
||||||
taglib-dev \
|
taglib-dev \
|
||||||
alsa-lib-dev \
|
alsa-lib-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
go
|
go
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
@@ -15,22 +15,22 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN GOOS=linux go build -o gonic cmd/gonic/gonic.go
|
RUN GOOS=linux go build -o gonic cmd/gonic/gonic.go
|
||||||
|
|
||||||
FROM alpine:3.13.5
|
FROM alpine:3.15
|
||||||
LABEL org.opencontainers.image.source https://github.com/sentriz/gonic
|
LABEL org.opencontainers.image.source https://github.com/sentriz/gonic
|
||||||
RUN apk add -U --no-cache \
|
RUN apk add -U --no-cache \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
tzdata \
|
tzdata \
|
||||||
tini
|
tini
|
||||||
|
|
||||||
COPY --from=builder \
|
COPY --from=builder \
|
||||||
/usr/lib/libgcc_s.so.1 \
|
/usr/lib/libgcc_s.so.1 \
|
||||||
/usr/lib/libstdc++.so.6 \
|
/usr/lib/libstdc++.so.6 \
|
||||||
/usr/lib/libtag.so.1 \
|
/usr/lib/libtag.so.1 \
|
||||||
/usr/lib/
|
/usr/lib/
|
||||||
COPY --from=builder \
|
COPY --from=builder \
|
||||||
/src/gonic \
|
/src/gonic \
|
||||||
/bin/
|
/bin/
|
||||||
VOLUME ["/cache", "/data", "/music", "/podcasts"]
|
VOLUME ["/cache", "/data", "/music", "/podcasts"]
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENV TZ ""
|
ENV TZ ""
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.16-alpine AS builder
|
FROM golang:1.17-alpine AS builder
|
||||||
RUN apk add -U --no-cache \
|
RUN apk add -U --no-cache \
|
||||||
build-base \
|
build-base \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# syntax=docker/dockerfile:experimental
|
# syntax=docker/dockerfile:experimental
|
||||||
|
|
||||||
FROM golang:1.16-alpine AS builder
|
FROM golang:1.17-alpine AS builder
|
||||||
RUN apk add -U --no-cache \
|
RUN apk add -U --no-cache \
|
||||||
build-base \
|
build-base \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -15,7 +15,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
|||||||
--mount=type=cache,target=/root/.cache/go-build \
|
--mount=type=cache,target=/root/.cache/go-build \
|
||||||
GOOS=linux go build -o gonic cmd/gonic/gonic.go
|
GOOS=linux go build -o gonic cmd/gonic/gonic.go
|
||||||
|
|
||||||
FROM alpine:3.13.5
|
FROM alpine:3.15
|
||||||
RUN apk add -U --no-cache \
|
RUN apk add -U --no-cache \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
|
|||||||
Reference in New Issue
Block a user