-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdockerfile-intellij
40 lines (27 loc) · 1002 Bytes
/
dockerfile-intellij
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
FROM alpine:3.10
ENV LANG C.UTF-8
ARG INTELLIJ_APP=ideaIU-2019.1.3.tar.gz
RUN wget https://download.jetbrains.com/idea/$INTELLIJ_APP && \
tar -xf $INTELLIJ_APP && \
mv /idea-IU-191.7479.19 /opt/idea && \
rm $INTELLIJ_APP
RUN apk --no-cache --update add \
openjdk8 openjdk8-dbg
RUN apk --no-cache --update add \
cmake g++ git linux-headers libpthread-stubs make gradle
RUN apk --no-cache --update add \
bash bash-completion coreutils file openssl openssh font-noto
RUN apk --no-cache --update add \
gdb musl-dbg strace
# 'shadow' gives the capabilities to create an user
RUN apk --no-cache --update add shadow && \
useradd --create-home --shell /bin/bash intellij && \
passwd -d intellij && \
chmod 777 /home/intellij/
USER intellij
ENV HOME /home/intellij
WORKDIR /home/intellij
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
ENV JDK_HOME /usr/lib/jvm/java-1.8-openjdk
ENV JAVA_EXE /usr/lib/jvm/java-1.8-openjdk/bin/java
CMD /opt/idea/bin/idea.sh