-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
75 lines (65 loc) · 1.78 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM phusion/baseimage:0.9.18
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
ENV IDEA_VERSION=2016.1.4
ENV MAVEN_VERSION=3.3.9
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US
RUN locale-gen en_US.UTF-8
#peut-être nécessaire si xubuntu ne complète pas automatiquement
#COPY configs/idea.desktop /usr/share/applications/idea.desktop
#COPY configs/idea.png /opt/idea/idea.png
RUN add-apt-repository ppa:x2go/stable
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y -o Dpkg::Options::="--force-confold" \
&& DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold"
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y xubuntu-desktop
COPY ./startup.sh /usr/bin/startup.sh
#installation des paquets nécessaires
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
nano \
lshw \
gettext \
gedit \
gnome-terminal \
# aptitude \
byobu \
build-essential \
curl \
git \
htop \
libasound2 \
libdbus-glib-1-2 \
libgtk2.0-0 \
libpango1.0-0 \
libxt6 \
libXrender1 \
# lxde \
openjdk-7-jdk \
openssh-server \
software-properties-common \
# sudo \
vim \
wget \
x11vnc \
python \
python-numpy \
unzip \
Xvfb \
firefox \
openbox \
geany \
menu \
apache2 \
&& apt-get clean \
&& apt-get -y autoremove
ADD passvnc /root/passvnc
RUN cd /root && git clone https://github.com/kanaka/noVNC.git && \
cd noVNC/utils && git clone https://github.com/kanaka/websockify websockify && \
cd /root && \
chmod 0755 /usr/bin/startup.sh
RUN echo -e "\n\n\n* * * Cleaning up * * * \n\n"
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
CMD /usr/bin/startup.sh
EXPOSE 6080