-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (26 loc) · 1.16 KB
/
Dockerfile
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
FROM rust:latest
ENV VERSION=2.1698
ENV CSVERSION=2.1698-vsc1.41.1
ENV CODESERVER=https://github.com/cdr/code-server/releases/download/${VERSION}/code-server${CSVERSION}-linux-x86_64.tar.gz \
DISABLE_TELEMETRY=true \
SHELL=/bin/bash
ADD $CODESERVER code-server.tar
RUN mkdir -p code-server \
&& tar -xf code-server.tar -C code-server --strip-components 1 \
&& cp code-server/code-server /usr/local/bin \
&& rm -rf code-server* && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends bash git locales htop curl wget less net-tools tmux net-tools && \
apt-get autoremove -y && \
rustup component add rls rust-src rust-docs rust-analysis rustfmt && rustup update && \
cargo install cargo-outdated && cargo install cargo-release && cargo install cargo-update && \
mkdir -p /home/coder/project && \
code-server --install-extension rust-lang.rust && \
code-server --install-extension humao.rest-client && \
code-server --install-extension HookyQR.beautify && \
code-server --install-extension liximomo.sftp
WORKDIR /root/project
VOLUME /root/project
EXPOSE 8443
ENTRYPOINT ["code-server"]