Skip to content

Commit 90a509b

Browse files
committed
update Dockerfile to install Go version from .go-version file
1 parent 45d9489 commit 90a509b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM alpine:3.22.0@sha256:8a1f59ffb675680d47db6337b49d22281a139e9d709335b492be023728e11715
2-
RUN apk add --no-cache go
2+
3+
COPY .go-version .go-version
4+
5+
RUN apk add --no-cache go=$(cat .go-version)-r0
36

47
COPY . .
58

0 commit comments

Comments
 (0)