Sign inSign up

sarfaraz07/laravel

By sarfaraz07

•Updated over 5 years ago

Image
0

104

sarfaraz07/laravel repository overview

FROM ubuntu:20.04

MAINTAINER [email protected]⁠ ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:ondrej/php && apt-get update RUN apt-get install -y git php php-mysql php-zip php-mbstring php-xml php-mcrypt php-cli php-gd php-curl curl && rm -rf /var/lib/apt/lists/* RUN curl -sS https://getcomposer.org/installer⁠ | php && mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/composer RUN a2enmod rewrite WORKDIR /var/www/html RUN rm -rf * && git clone https://github.com/laravel/laravel.git⁠ . RUN composer install RUN chmod -R 777 /var/www/html/storage && mv .env.example .env && php artisan key:generate

RUN sed -i "s,/var/www/html,/var/www/html/public,g" /etc/apache2/sites-available/000-default.conf &&
sed -i '13 a <Directory /var/www/html/public>' /etc/apache2/sites-available/000-default.conf &&
sed -i '14 a Options Indexes FollowSymLinks MultiViews' /etc/apache2/sites-available/000-default.conf &&
sed -i '15 a AllowOverride All' /etc/apache2/sites-available/000-default.conf &&
sed -i '16 a Require all granted' /etc/apache2/sites-available/000-default.conf &&
sed -i '17 a ' /etc/apache2/sites-available/000-default.conf

ENV APACHE_LOG_DIR /var/log/apache2 ENV APACHE_LOCK_DIR /var/lock/apache2 ENV APACHE_PID_FILE /var/run/apache2.pid

EXPOSE 80 443

CMD /usr/sbin/apache2ctl -D FOREGROUND

Tag summary

Content type

Image

Digest

Size

164 MB

Last updated

over 5 years ago

docker pull sarfaraz07/laravel