golang ide build

This commit is contained in:
qq
2022-08-25 12:05:12 +08:00
parent 76842662a2
commit c3cee04623
3 changed files with 27 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM registry.jetbrains.team/p/prj/containers/projector-goland
RUN sudo chmod -R 777 /home && cd $HOME \
&& sudo apt-get update && sudo apt-get install wget -y && sudo apt-get install build-essential -y \
&& sudo wget https://go.dev/dl/go1.18.3.linux-amd64.tar.gz \
&& sudo tar -C /usr/local -zxvf go1.18.3.linux-amd64.tar.gz \
&& sudo rm -rf go1.18.3.linux-amd64.tar.gz
ENV PATH /usr/local/go/bin:$PATH
ENV GOPATH /home
ENV GOROOT /usr/local/go