fix(docker): bump alpine / go

This commit is contained in:
sentriz
2021-05-09 00:19:17 +01:00
parent 4b3adf0f7f
commit 1f941b2085
3 changed files with 3 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:3.13.1 AS builder FROM golang:1.16-alpine AS builder
RUN apk add -U --no-cache \ RUN apk add -U --no-cache \
build-base \ build-base \
ca-certificates \ ca-certificates \
@@ -14,7 +14,7 @@ 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.1 FROM alpine:3.13.5
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 \

View File

@@ -1,5 +1,3 @@
# syntax=docker/dockerfile:experimental
FROM golang:1.16-alpine AS builder FROM golang:1.16-alpine AS builder
RUN apk add -U --no-cache \ RUN apk add -U --no-cache \
build-base \ build-base \

View File

@@ -14,7 +14,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.12.3 FROM alpine:3.13.5
RUN apk add -U --no-cache \ RUN apk add -U --no-cache \
ffmpeg \ ffmpeg \
ca-certificates ca-certificates