From 32ad8d167d05c099e9da4969b7171da4466b1b3e Mon Sep 17 00:00:00 2001 From: vnxme <46669194+vnxme@users.noreply.github.com> Date: Wed, 15 Nov 2023 23:11:45 +0300 Subject: [PATCH] Update Dockerfile - Bump golang version - Clone specific branch only --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b542814..2fe6aef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ ARG ALPINE_VERSION=3.18 -ARG GOLANG_VERSION=1.20 +ARG GOLANG_VERSION=1.21 FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION} as builder RUN apk add --update --no-cache git -RUN git clone https://github.com/database64128/swgp-go /app +RUN git clone --depth 1 --branch ${SWGPGO_BRANCH:-main} https://github.com/database64128/swgp-go /app WORKDIR /app/cmd/swgp-go