-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (27 loc) · 1 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
37
# FROM rycus86/intellij-idea:2023.1.2
FROM debian
RUN \
apt-get update && apt-get install --no-install-recommends -y \
default-jdk gcc git openssh-client less curl \
libxtst-dev libxext-dev libxrender-dev libfreetype6-dev \
libfontconfig1 libgtk2.0-0 libxslt1.1 libxxf86vm1 \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -ms /bin/bash developer
ARG IDEA_VERSION=2024.2
ARG IDEA_BUILD=2024.2.1
ARG idea_local_dir=.IdeaIC${IDEA_VERSION}
WORKDIR /opt/idea
RUN echo "Preparing IntelliJ IDEA ${IDEA_BUILD} ..." \
&& export idea_source=https://download.jetbrains.com/idea/ideaIC-${IDEA_BUILD}.tar.gz \
&& echo "Downloading ${idea_source} ..." \
&& curl -fsSL $idea_source -o /opt/idea/installer.tgz \
&& tar --strip-components=1 -xzf installer.tgz \
&& rm installer.tgz
USER developer
ENV HOME /home/developer
RUN mkdir /home/developer/.Idea \
&& ln -sf /home/developer/.Idea /home/developer/$idea_local_dir
USER root
COPY format.sh /format.sh
RUN chmod +x /format.sh
ENTRYPOINT ["/format.sh"]