-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08498a8
commit c170767
Showing
2 changed files
with
11 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
FROM ubuntu:23.10 | ||
# Start from the latest golang base image | ||
FROM golang:1.21 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
docker.io \ | ||
docker-compose \ | ||
libzstd-dev \ | ||
wget \ | ||
git \ | ||
build-essential | ||
|
||
ENV GO_VERSION 1.20.1 | ||
|
||
RUN wget https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz -O go.tar.gz \ | ||
&& tar -C /usr/local -xzf go.tar.gz \ | ||
&& rm go.tar.gz | ||
|
||
ENV PATH="/usr/local/go/bin:${PATH}" | ||
ENV GOPATH="/go" | ||
ENV PATH="$GOPATH/bin:${PATH}" | ||
ENV CGO_ENABLED=1 | ||
RUN gcc --version && g++ --version | ||
# Install Docker | ||
RUN apt-get update && apt-get install -y docker.io docker-compose | ||
|
||
# Set the working directory | ||
WORKDIR /go/src/app | ||
|
||
ENTRYPOINT ["/bin/bash"] | ||
# This container will be executable | ||
ENTRYPOINT [ "/bin/bash" ] |