Skip to content

Commit

Permalink
build: update go dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bosix authored and bosdorff committed Apr 30, 2024
1 parent 543669d commit 2bc0717
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM registry.hub.docker.com/library/golang:1.19.5 as builder
FROM registry.hub.docker.com/library/golang:1.22.2 as builder
WORKDIR /workspace
COPY . .
ENV GOOS linux
ENV CGO_ENABLED 1
RUN go mod vendor && \
go build -ldflags "-s -w" -o prestd cmd/prestd/main.go && \
apt-get update && apt-get install --no-install-recommends -yq netcat
apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends -yq netcat-traditional && rm -rf /var/lib/apt/lists/*

# Use golang image
# needs go to compile the plugin system
FROM registry.hub.docker.com/library/golang:1.19.5
FROM registry.hub.docker.com/library/golang:1.22.2
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
ENV CGO_ENABLED 1
COPY --from=builder /bin/nc /bin/nc
COPY --from=builder /workspace/prestd /bin/prestd
Expand Down

0 comments on commit 2bc0717

Please sign in to comment.