This commit is contained in:
Crizomb 2025-12-23 16:46:14 +01:00
commit 39659b6fd2
5 changed files with 59 additions and 0 deletions

22
GoImage/Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM git.rufous-trench.ts.net/crizomb/forgejo-action-base:deb13-node20
# Set Go version
ENV GO_VERSION=1.24.1
# Download and install Go
RUN curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz -o /tmp/go.tar.gz \
&& rm -rf /usr/local/go \
&& tar -C /usr/local -xzf /tmp/go.tar.gz \
&& rm /tmp/go.tar.gz
# Set Go environment variables
ENV PATH="/usr/local/go/bin:${PATH}"
ENV GOPATH="/go"
# Create GOPATH directories
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin ${GOPATH}/pkg
# Set working directory
WORKDIR /app
# Verify installation
RUN go version