forked from nazar-pc/docker-webserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-ssh
53 lines (47 loc) · 1.06 KB
/
Dockerfile-ssh
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
FROM phusion/baseimage:0.11
LABEL maintainer "Nazar Mokrynskyi <nazar@mokrynskyi.com>"
COPY webserver-common /webserver-common/
RUN \
/webserver-common/create-git-user.sh && \
/webserver-common/apt-get-update.sh && \
/webserver-common/apt-get-install-common.sh && \
/webserver-common/apt-get-install-ceph-fuse.sh && \
\
apt-get install -y --no-install-recommends git mc wget rsync \
php-cli \
php-curl \
php-bcmath \
php-bz2 \
php-exif \
php-ftp \
php-gd \
php-gettext \
php-mbstring \
php-mysqli \
php-opcache \
php-shmop \
php-sockets \
php-sysvmsg \
php-sysvsem \
php-sysvshm \
php-zip && \
\
/webserver-common/apt-get-cleanup.sh && \
\
# Enable SSH
rm -f /etc/service/sshd/down && \
\
# Rename SSH config directory
mv /etc/ssh /etc/ssh_dist && \
\
# Install Composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY ssh/webserver-entrypoint.sh /
ENV \
CEPH_MON_SERVICE=ceph-mon \
CEPHFS_MOUNT=0 \
TERM=xterm
VOLUME \
/data \
/etc/ssh
ENTRYPOINT ["/webserver-entrypoint.sh"]