-
Notifications
You must be signed in to change notification settings - Fork 28
/
.gitpod.dockerfile
46 lines (34 loc) · 1.26 KB
/
.gitpod.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
37
38
39
40
41
42
43
44
45
FROM gitpod/workspace-full:latest
ENV PATH=/usr/lib/dart/bin:$PATH
USER root
# Install custom tools, runtime, etc.
RUN apt-get update && apt-get install -y \
tcl tk expect \
&& apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
# install dart
RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \
apt-get update && \
apt-get -y install build-essential dart libkrb5-dev gcc make && \
apt-get clean && \
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*;
# Set up JAVA_CMD (required by Leiningen)
ENV JAVA_CMD /home/gitpod/.sdkman/candidates/java/current/bin/java
ENV PATH $JAVA_CMD:$PATH
# Install Leiningen for Clojure
RUN wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
RUN chmod +x lein
RUN mv lein /usr/local/bin
USER gitpod
# Apply user-specific settings
#ENV ...
RUN npm install ts-node elm -g
SHELL ["/bin/bash", "-c"]
RUN source "$HOME/.sdkman/bin/sdkman-init.sh" && \
sdk install groovy && \
sdk install java
SHELL ["/bin/sh", "-c"]
# Give back control
USER root