Projekt

Obecné

Profil

Stáhnout (766 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
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
    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

    
13
COPY ./conf.d/apache/apache2.conf /etc/apache2
14
COPY ./conf.d/apache/000-default.conf /etc/apache2/sites-enabled
15

    
16
ENV COMPOSER_ALLOW_SUPERUSER 1
17
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
18
RUN a2enmod rewrite
19

    
20
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
(2-2/2)