-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-old
49 lines (39 loc) · 1.17 KB
/
Dockerfile-old
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
46
47
48
FROM phusion/baseimage:0.9.22
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# Tell debconf to run in non-interactive mode
ENV DEBIAN_FRONTEND noninteractive
ENV PYCHARM_HOME=/etc/pycharm
RUN apt-get update && apt-get -y --no-install-recommends install \
wget \
git \
openjdk-9-jre \
libxrender1 \
libxtst6 \
python \
python3 \
curl \
openssh-client \
nano \
vim-tiny \
iputils-ping \
python \
build-essential \
libssl-dev \
libffi-dev \
python-pip \
python-setuptools \
python3-setuptools \
python-dev \
net-tools \
software-properties-common
RUN wget https://download.jetbrains.com/python/pycharm-community-2017.2.3.tar.gz
RUN mkdir ${PYCHARM_HOME} && tar -xzvf pycharm-community-2017.2.3.tar.gz -C ${PYCHARM_HOME} --strip=1 &&\
wget -P /tmp/ https://bootstrap.pypa.io/get-pip.py && python /tmp/get-pip.py &&\
rm -rf /var/lib/apt-lists; rm -rf /tmp/*; apt-get purge wget -y; apt-get autoremove -y
RUN mkdir /etc/sv/pycharm
ADD pycharm-run /etc/sv/pycharm/run
RUN chmod a+x /etc/sv/pycharm/run
RUN ln -s /etc/sv/pycharm /etc/service
VOLUME /root
VOLUME /etc/$PYCHARM_HOME