-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (34 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
39 lines (34 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# install linux bash commands which wil be used
RUN apt-get update && apt-get install -y \
sudo \
curl \
git \
vim \
unzip \
ripgrep \
golang \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://bun.com/install | bash
# default go tooling
ENV PATH="/root/go/bin:${PATH}"
RUN go install golang.org/x/tools/gopls@latest \
&& go install github.com/go-delve/delve/cmd/dlv@latest \
&& go install golang.org/x/tools/cmd/goimports@latest \
&& curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
# set-up bashrc to have basic colours
RUN { \
echo "alias ls='ls --color=auto'"; \
echo "alias ll='ls -la --color=auto'"; \
echo "alias grep='grep --color=auto'"; \
echo "export PS1='\\[\\033[1;32m\\][dev-container]\\[\\033[0m\\] \\w \\$ '"; \
} >> ~/.bashrc
# install Dingo
RUN git clone https://github.com/MadAppGang/dingo.git /tmp/dingo \
&& cd /tmp/dingo \
&& go build -o /usr/local/bin/dingo ./cmd/dingo \
&& rm -rf /tmp/dingo
# make warchest folder
RUN mkdir /root/warchest
WORKDIR /root/warchest