-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9dfbbc6
commit 6e88af0
Showing
11 changed files
with
504 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.git | ||
node_modules | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
FROM php:7.4-fpm | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
libzip-dev \ | ||
libc-client-dev \ | ||
libkrb5-dev \ | ||
libpng-dev \ | ||
libjpeg-dev \ | ||
libwebp-dev \ | ||
libfreetype6-dev \ | ||
libkrb5-dev \ | ||
libicu-dev \ | ||
zlib1g-dev \ | ||
zip \ | ||
ffmpeg \ | ||
libmemcached11 \ | ||
libmemcachedutil2 \ | ||
build-essential \ | ||
libmemcached-dev \ | ||
gnupg2 \ | ||
libpq-dev \ | ||
libpq5 \ | ||
libz-dev | ||
RUN docker-php-ext-configure gd \ | ||
--with-webp=/usr/include/ \ | ||
--with-freetype=/usr/include/ \ | ||
--with-jpeg=/usr/include/ | ||
RUN docker-php-ext-install gd | ||
RUN docker-php-ext-configure imap \ | ||
--with-kerberos \ | ||
--with-imap-ssl | ||
RUN docker-php-ext-install imap | ||
RUN docker-php-ext-configure zip | ||
RUN docker-php-ext-install zip | ||
RUN docker-php-ext-configure intl | ||
RUN docker-php-ext-install intl | ||
RUN docker-php-ext-install pdo_pgsql | ||
RUN docker-php-ext-install pgsql | ||
RUN docker-php-ext-install exif | ||
RUN docker-php-ext-install fileinfo | ||
FROM ubuntu:20.04 | ||
|
||
WORKDIR /var/www/html | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV TZ=UTC | ||
|
||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git nano cron net-tools lsof \ | ||
sudo supervisor nginx sqlite3 libcap2-bin \ | ||
&& mkdir -p ~/.gnupg \ | ||
&& echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \ | ||
&& apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C \ | ||
&& apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C \ | ||
&& echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \ | ||
&& apt-get update | ||
|
||
RUN apt-get install -y php8.0-fpm php8.0-cli php8.0-dev \ | ||
php8.0-pgsql php8.0-sqlite3 php8.0-gd \ | ||
php8.0-curl php8.0-memcached \ | ||
php8.0-imap php8.0-mysql php8.0-mbstring \ | ||
php8.0-xml php8.0-zip php8.0-bcmath php8.0-soap \ | ||
php8.0-intl php8.0-readline \ | ||
php8.0-msgpack php8.0-igbinary php8.0-ldap \ | ||
php8.0-redis | ||
|
||
RUN apt-get -y autoremove \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN sudo update-rc.d -f nginx disable | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
COPY ./docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
COPY ./docker/php.ini /etc/php/8.0/cli/conf.d/99-laravel.ini | ||
COPY ./docker/nginx_default.conf /etc/nginx/sites-available/default | ||
COPY ./docker/php-fpm.conf /etc/php/8.0/fpm/php-fpm.conf | ||
COPY ./docker/add_to_cron /temp/add_to_cron | ||
RUN crontab /temp/add_to_cron && rm /temp/add_to_cron | ||
|
||
ADD . /var/www/html | ||
RUN chown -R www-data: /var/www/html /tmp | ||
RUN composer install --no-dev | ||
|
||
EXPOSE 80 | ||
|
||
CMD php artisan serve --port=80 --host=0.0.0.0 | ||
CMD ["/usr/bin/supervisord"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.