init
This commit is contained in:
commit
39659b6fd2
5 changed files with 59 additions and 0 deletions
22
GoImage/Dockerfile
Normal file
22
GoImage/Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue