File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1- # Use Ubuntu latest as base image
2- FROM ubuntu:latest
1+ # Use official Go 1.24 image as base
2+ FROM golang:1.24-bookworm
33
44# Set environment variables
5- ENV DEBIAN_FRONTEND=noninteractive
6- ENV GO_VERSION=1.24.2
7- ENV GOPATH=/go
8- ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
95ENV CGO_ENABLED=0
106ENV GOOS=linux
117ENV GOARCH=amd64
@@ -25,10 +21,6 @@ RUN apt-get update && apt-get install -y \
2521 netcat-openbsd \
2622 && rm -rf /var/lib/apt/lists/*
2723
28- # Install Go
29- RUN wget -q https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz \
30- && tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz \
31- && rm go${GO_VERSION}.linux-amd64.tar.gz
3224
3325# Install Redis
3426RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg \
You can’t perform that action at this time.
0 commit comments