From 0c48cc06316bb03be886e9112d32b4a5572368c9 Mon Sep 17 00:00:00 2001 From: bump Date: Tue, 17 Aug 2021 16:16:28 +0000 Subject: [PATCH] Update golang from 1.16.7 to 1.17.0 Release notes https://golang.org/doc/devel/release.html golang 1.17 base image now uses bullseye Add python-is-python3 to make python3 default --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 89b1b7b..ab3f5a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,22 @@ # bump: golang /GOLANG_VERSION=([\d.]+)/ docker:golang|^1 # bump: golang link "Release notes" https://golang.org/doc/devel/release.html -ARG GOLANG_VERSION=1.16.7 +ARG GOLANG_VERSION=1.17.0 # bump: youtube-dl /YDL_VERSION=([\d.]+)/ https://github.com/ytdl-org/youtube-dl.git|/^\d/|sort # bump: youtube-dl link "Release notes" https://github.com/ytdl-org/youtube-dl/releases/tag/$LATEST ARG YDL_VERSION=2021.06.06 -FROM golang:$GOLANG_VERSION +FROM golang:$GOLANG_VERSION AS base ARG YDL_VERSION RUN \ + apt-get update -q && \ + apt-get install -y -q python-is-python3 && \ curl -L -o /usr/local/bin/youtube-dl https://yt-dl.org/downloads/$YDL_VERSION/youtube-dl && \ chmod a+x /usr/local/bin/youtube-dl +FROM base AS dev + +FROM base WORKDIR /src COPY go.* *.go ./ COPY cmd cmd