-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 976 Bytes
/
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
FROM debian:latest
MAINTAINER Vítězslav Dvořák <info@vitexsoftware.cz>
RUN apt update
RUN apt-get update && apt-get install -my wget gnupg
RUN wget -O - http://v.s.cz/info@vitexsoftware.cz.gpg.key | apt-key add -
RUN echo deb http://v.s.cz/ stable main | tee /etc/apt/sources.list.d/vitexsoftware.list
RUN apt-get update
RUN apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-php php-mysql php-gd php-pear php-curl php-mbstring curl lynx-cur composer php-intl locales-all php-flexibee-config flexipeehp-bricks
RUN rm -f /var/www/html/index.html
COPY src/ /var/www/html/
RUN ln -s /var/www/html/ /var/www/src
RUN chown www-data /etc/flexibee/client.json
COPY debian/composer.json /var/www/composer.json
RUN composer install --no-dev --no-plugins --no-scripts -d /var/www/
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
EXPOSE 80
CMD ["/usr/sbin/apachectl","-DFOREGROUND"]