-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (27 loc) · 1.08 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
32
33
34
35
36
FROM python:3.7 as python
FROM golang:1.12.0 as golang
FROM node:12.3.1 as node
FROM codercom/code-server
USER root
COPY --from=python /usr/local/ /usr/local/
COPY --from=golang /usr/local/ /usr/local/
COPY --from=node /usr/local/ /usr/local
RUN apt-get update && apt-get install -y ca-certificates \
git \
bash \
libunwind8
RUN mkdir -p "/go" && mkdir -p "/go/src" "/go/bin" "/go/pkg" && chmod -R 777 "/go"
USER coder
ENV PATH /usr/local/go/bin:$PATH
ENV GO111MODULE auto
ENV GOPATH /go
RUN code-server --install-extension ms-python.python && \
code-server --install-extension ms-vscode.go && \
code-server --install-extension ryanluker.vscode-coverage-gutters && \
code-server --install-extension peterjausovec.vscode-docker && \
code-server --install-extension dbaeumer.vscode-eslint && \
code-server --install-extension esbenp.prettier-vscode && \
code-server --install-extension justusadam.language-haskell
COPY vscode.json /home/coder/.local/share/code-server/User/settings.json
#COPY vscode.json /home/coder/.config/Code/User/settings.json
ENTRYPOINT ["dumb-init", "code-server"]