2017-05-21 14:53:14 +03:00
|
|
|
FROM php:7.0-apache
|
2016-11-26 13:01:33 +03:00
|
|
|
|
2017-05-21 14:53:14 +03:00
|
|
|
ENV PROJECT_DIR=/var/www/html \
|
2017-04-21 13:07:45 +03:00
|
|
|
APP_URL=localhost
|
2016-11-26 13:01:33 +03:00
|
|
|
|
2017-05-21 14:53:14 +03:00
|
|
|
RUN docker-php-ext-install mysqli gettext
|
2017-04-21 13:07:45 +03:00
|
|
|
|
2020-03-10 22:58:31 +03:00
|
|
|
RUN apt-get update -y && apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev \
|
|
|
|
libfreetype6-dev
|
|
|
|
|
|
|
|
RUN docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \
|
|
|
|
--with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir \
|
|
|
|
--enable-gd-native-ttf
|
|
|
|
|
|
|
|
RUN docker-php-ext-install gd
|
|
|
|
|
2017-04-21 13:07:45 +03:00
|
|
|
COPY ./src $PROJECT_DIR
|
2018-11-03 17:15:20 +03:00
|
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
2017-04-21 13:07:45 +03:00
|
|
|
|
2018-11-03 17:15:20 +03:00
|
|
|
RUN sed -i 's/\r//' /docker-entrypoint.sh
|
2018-02-27 16:55:51 +03:00
|
|
|
|
2017-04-21 13:07:45 +03:00
|
|
|
VOLUME $PROJECT_DIR/storage
|
|
|
|
|
2018-11-03 17:15:20 +03:00
|
|
|
ENTRYPOINT ["/bin/bash", "/docker-entrypoint.sh"]
|
2017-04-23 14:22:09 +03:00
|
|
|
CMD ["run"]
|