-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
65 lines (48 loc) · 1.42 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
FROM php:7.1-alpine
ENV DEPLOYER_VERSION=6.0.5
ENV TZ Europe/Riga
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
re2c
RUN set -xe \
&& apk update --no-cache \
&& apk add --no-cache \
openssh-client \
openssh \
bash \
git \
${PHPIZE_DEPS} \
postgresql-dev \
zlib-dev \
&& docker-php-ext-install pdo pdo_pgsql opcache zip \
&& docker-php-ext-enable pdo pdo_pgsql opcache zip \
&& apk del \
postgresql-libs \
libsasl \
db \
${PHPIZE_DEPS}
RUN set -xe \
&& apk add --update tzdata \
&& cp /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo "${TZ}" > /etc/timezone \
&& echo "date.timezone=${TZ}" > /usr/local/etc/php/conf.d/timezone.ini \
&& apk del tzdata
RUN curl -L https://deployer.org/releases/v${DEPLOYER_VERSION}/deployer.phar > /usr/local/bin/deployer \
&& chmod +x /usr/local/bin/deployer
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer
VOLUME ["/project","$HOME/.ssh", "/app"]
WORKDIR /project
COPY entrypoint /entrypoint
RUN chmod +x /entrypoint
ENTRYPOINT ["/entrypoint"]
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]