Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
- Bump golang version
- Clone specific branch only
  • Loading branch information
vnxme committed Nov 15, 2023
1 parent f7733f9 commit 32ad8d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 32ad8d1

Please sign in to comment.