Dockerfile 1.07 KB
Newer Older
Martin Mai's avatar
-  
Martin Mai committed
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
FROM ubuntu:16.04
RUN rm /etc/apt/sources.list
ADD sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y

# RUN apt-get install -y \
#     bash-completion \
#     vim \
#     git \
#     sudo \
#     rsync \    
#     cron \
#     byobu
# 
# #DEBIAN_FRONTEND=noninteractive
# RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
#   apache2 \
#   openssh-server \
#   rsync \
#   mysql-server
#   
#   
# RUN locale-gen de_DE.utf8 && locale -a      
#   
# RUN a2ensite default-ssl && a2enmod ssl
# RUN make-ssl-cert generate-default-snakeoil --force-overwrite
# 
# RUN a2dismod mpm_event && a2enmod mpm_prefork && a2enmod headers
# 
# 
# RUN mkdir -p /root/uniba.de/initial
# RUN mkdir -p /root/uniba.de/initial/var/lib/mysql/
# RUN rsync -a /var/lib/mysql/ /root/uniba.de/initial/var/lib/mysql/
# 
ADD start.sh /start
RUN chmod +x /start
# 
# RUN mkdir -p /root/uniba.de/initial/remove-after-run
# ADD setup.sh /root/uniba.de/initial/remove-after-run/setup.sh
# 
# RUN mkdir -p /root/.ssh/
# ADD authorized_keys2 /root/.ssh/authorized_keys2



CMD ["/start", "-D"]