Skip to content

Commit

Permalink
feat: update golang version in Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
leoli0605 committed Jun 27, 2024
1 parent ccbca3a commit f113bcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM golang:1.20-alpine as builder
FROM golang:1.21-alpine AS builder
ARG HUGO_VERSION=latest
RUN apk update && \
apk add --no-cache \
gcc \
g++ \
musl-dev \
libc-dev
RUN go version
RUN CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@$HUGO_VERSION
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.bookworm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20-bookworm as builder
FROM golang:1.21-bookworm AS builder
ARG HUGO_VERSION=latest
RUN go version
RUN CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@$HUGO_VERSION
Expand Down

0 comments on commit f113bcd

Please sign in to comment.