-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (35 loc) · 1.02 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM php:7.4-apache
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
libpq-dev \
git \
zlib1g-dev \
libxml2-dev \
libzip-dev \
&& docker-php-ext-install \
mysqli \
pdo_mysql \
zip \
soap \
exif \
&& curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd
WORKDIR /var/www/atualsistemas
COPY ./000-default.conf /etc/apache2/sites-available
COPY . .
RUN chown -R www-data:www-data /var/www/atualsistemas \
&& chmod -R 775 /var/www/atualsistemas
COPY ./docker-config/php.ini /usr/local/etc/php/conf.d/php-extras.ini
RUN composer install
# Enable Apache Rewrite Module
RUN a2enmod rewrite
RUN a2enmod headers
CMD php artisan serve --host=0.0.0.0 --port=80
EXPOSE 80