-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.base
45 lines (39 loc) · 1.47 KB
/
Dockerfile.base
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
40
41
42
43
44
45
FROM ubuntu:latest
RUN apt-get update && apt-get install -y sudo
RUN useradd -ms /bin/bash devuser -u 1000
RUN echo "devuser:password" | chpasswd
RUN echo 'devuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER devuser
RUN sudo apt-get install -y \
git \
make \
bat \
ripgrep \
neovim \
curl \
neofetch \
fd-find \
net-tools \
iproute2
# vscode setup
RUN curl -fsSL https://code-server.dev/install.sh | sh
COPY code-server/config.yaml /home/devuser/.config/code-server/config.yaml
RUN mkdir -p ~/.local/share/code-server
COPY code-server/.vscode ~/.local/share/code-server/.vscode
EXPOSE 8080
RUN sudo apt-get install -y openssh-server
RUN sudo mkdir /var/run/sshd
EXPOSE 22
RUN code-server --install-extension streetsidesoftware.code-spell-checker
RUN code-server --install-extension usernamehw.errorlens
RUN code-server --install-extension GrapeCity.gc-excelviewer
RUN code-server --install-extension PKief.material-icon-theme
RUN code-server --install-extension cweijan.git-history-plus
RUN code-server --install-extension codezombiech.gitignore
RUN code-server --install-extension ms-vscode.hexeditor
RUN code-server --install-extension sdras.night-owl
RUN code-server --install-extension christian-kohler.path-intellisense
RUN code-server --install-extension hbenl.vscode-test-explorer
RUN code-server --install-extension wayou.vscode-todo-highlight
RUN code-server --install-extension redhat.vscode-xml
RUN code-server --install-extension redhat.vscode-yaml