summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.ru>2024-01-27 05:22:30 +0300
committerNeonXP <i@neonxp.ru>2024-01-27 05:22:30 +0300
commit6801a91f585b9bdac1b7f85865fdb93de73d275f (patch)
tree019490d3e83c3995562b1162ff5774d14946243e
first commit
-rw-r--r--Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..41b124d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,22 @@
+FROM ubuntu:latest
+
+RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
+ apt-get -y install software-properties-common ca-certificates curl && \
+ add-apt-repository ppa:longsleep/golang-backports && \
+ apt-get -y install --no-install-recommends gnupg2 procps sudo git libpq-dev golang
+RUN useradd -m -d /home/vscode -s /bin/bash vscode && adduser vscode sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
+
+USER vscode
+
+RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
+RUN go install github.com/go-delve/delve/cmd/dlv@latest
+RUN go install golang.org/x/tools/gopls@latest
+RUN go install github.com/cweill/gotests/gotests@v1.6.0
+RUN go install github.com/fatih/gomodifytags@v1.16.0
+RUN go install github.com/josharian/impl@v1.1.0
+RUN go install github.com/haya14busa/goplay/cmd/goplay@v1.0.0
+RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
+
+SHELL ["/bin/bash", "-c", "-l"]
+
+# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1