Skip to content

Commit 3e5dc7c

Browse files
committed
use alpine image as builder
1 parent cbfc280 commit 3e5dc7c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM golang:1.23-bullseye as builder
2-
ARG upx_brute="--ultra-brute"
1+
FROM golang:1.24-alpine AS builder
32
WORKDIR /build
43

5-
RUN apt-get update && apt-get install -y upx
4+
RUN apk update && apk add upx
5+
66
COPY . .
77

88
ARG VERSION=main
@@ -11,7 +11,7 @@ ENV GO111MODULE=on \
1111
GOOS=linux
1212

1313
RUN go build -a -installsuffix cgo -ldflags="-w -s -X github.com/bakito/batch-job-controller/version.Version=${VERSION}" -o batch-job-controller cmd/generic/main.go && \
14-
upx ${upx_brute} -q batch-job-controller
14+
upx -q batch-job-controller
1515

1616
# application image
1717

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/bakito/batch-job-controller
22

3-
go 1.23.4
3+
go 1.24.0
44

55
require (
66
github.com/ghodss/yaml v1.0.0

0 commit comments

Comments
 (0)