1 |
67c41231
|
Filip Jani
|
FROM debian:stretch
|
2 |
|
|
|
3 |
|
|
MAINTAINER Filip Jani <fjani@students.zcu.cz>
|
4 |
|
|
|
5 |
|
|
#Nastavení Debianu
|
6 |
|
|
ENV DEBIAN_FRONTEND=nointeractive
|
7 |
|
|
|
8 |
|
|
RUN sed -i "s/^exit 101$/exit 0/" /usr/sbin/policy-rc.d
|
9 |
|
|
|
10 |
|
|
RUN apt-get update && \
|
11 |
ee62b2c5
|
Filip Jani
|
apt-get install -y apache2 php7.0 php7.0-zip php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql curl git unzip
|
12 |
67c41231
|
Filip Jani
|
|
13 |
|
|
COPY ./conf.d/apache/apache2.conf /etc/apache2
|
14 |
|
|
COPY ./conf.d/apache/000-default.conf /etc/apache2/sites-enabled
|
15 |
|
|
|
16 |
c1c91358
|
Filip Jani
|
ENV COMPOSER_ALLOW_SUPERUSER 1
|
17 |
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
18 |
6b983650
|
Filip Jani
|
RUN a2enmod rewrite
|
19 |
c1c91358
|
Filip Jani
|
|
20 |
67c41231
|
Filip Jani
|
EXPOSE 80
|
21 |
|
|
|
22 |
|
|
COPY ./conf.d/bash/start.sh /usr/local/bin/
|
23 |
|
|
RUN sed -i 's/\r$//' /usr/local/bin/start.sh
|
24 |
|
|
RUN chmod +x /usr/local/bin/start.sh
|
25 |
|
|
CMD /usr/local/bin/start.sh
|