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
+5
View File
@@ -0,0 +1,5 @@
## 构建
docker-compose build
## 启动
docker-compose up -d
+11
View File
@@ -0,0 +1,11 @@
version: '3'
services:
goland-ida:
build: .
ports:
- "8081:8887"
environment:
- ORG_JETBRAINS_PROJECTOR_SERVER_PIXEL_PER_UNIT=20
volumes:
- "./projector-docker/project:/home/projector-user:cached"