-
Notifications
You must be signed in to change notification settings - Fork 47
/
Dockerfile
36 lines (32 loc) · 881 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
27
28
29
30
31
32
33
34
35
36
# setup OS and timezone
FROM php:7.2-apache
LABEL Name=carpoolear_backend Version=0.0.1
ENV TZ=America/Argentina/Buenos_Aires
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone4
#install php git apache etc
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
unzip \
supervisor
RUN docker-php-ext-install \
pdo_mysql \
mbstring \
exif \
pcntl \
bcmath \
gd \
soap
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY ./000-default.conf /etc/apache2/sites-available/
COPY ./default-ssl.conf /etc/apache2/sites-available/
COPY ./queue-worker.conf /etc/supervisor/conf.d/
RUN a2enmod rewrite && a2enmod headers
RUN a2enmod ssl
RUN a2ensite default-ssl
CMD /usr/bin/supervisord & apachectl -D FOREGROUND