Skip to content

Commit 76997c0

Browse files
committed
update go
1 parent 2790bd8 commit 76997c0

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
ARG BUILD_FROM_PREFIX
55

6-
FROM ${BUILD_FROM_PREFIX}golang:alpine AS builder
6+
FROM ${BUILD_FROM_PREFIX}golang:alpine3.22 AS builder
77
COPY .gitignore /usr/bin/
88
RUN apk --no-cache add gcc musl-dev git
99
WORKDIR /go/src/
@@ -23,7 +23,7 @@ RUN export GOPROXY=direct \
2323
-ldflags '-s -w -X main.ver=${BUILD_VERSION} \
2424
-X main.commit=${BUILD_REF} -X main.date=${BUILD_DATE}' -o /app
2525

26-
FROM alpine:3.19 AS libs
26+
FROM alpine:3.22 AS libs
2727
RUN apk --no-cache add ca-certificates
2828

2929
FROM scratch

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,15 @@ docker:
5656
release-publish:
5757
./hooks/push
5858

59+
update:
60+
GOPROXY=direct go get -u
61+
GOPROXY=direct go mod tidy
62+
5963
deps:
60-
@docker run --rm -it -e GOPROXY=direct -v "${PWD}:/go/src/github.com/patrickdk77/aws-s3-proxy/" \
61-
-w /go/src/github.com/patrickdk77/aws-s3-proxy/ \
62-
golang:alpine3.21 sh -c 'apk --no-cache add git && go mod vendor'
64+
GOPROXY=direct go mod vendor
65+
# @docker run --rm -it -e GOPROXY=direct -v "${PWD}:/go/src/github.com/patrickdk77/aws-s3-proxy/" \
66+
# -w /go/src/github.com/patrickdk77/aws-s3-proxy/ \
67+
# golang:alpine3.21 sh -c 'apk --no-cache add git && go mod vendor'
6368

6469
up:
6570
@docker-compose up -d

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/patrickdk77/aws-s3-proxy
22

3-
go 1.23.0
4-
5-
toolchain go1.23.1
3+
go 1.24.2
64

75
require (
86
github.com/aws/aws-sdk-go v1.55.7

0 commit comments

Comments
 (0)