forked from Hugal31/hogwarts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (30 loc) · 1009 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
# Dockerfile for web server image
FROM jacksoncage/apache:latest
# Install git, mysql, curl and composer
RUN apt-get update && \
apt-get install git curl -y && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Clone repo and set document root to it
RUN cd /var/www \
&& git clone https://github.com/Hugal31/hogwarts.git \
&& cd hogwarts \
&& composer install \
&& chown www-data storage/logs
ENV APACHE_DOCUMENTROOT=/var/www/hogwarts
# Lumen arguments
# Don't forget to give APP_KEY and DB_HOST
ENV APP_ENV=prod \
APP_DEBUG=false \
APP_KEY= \
DB_CONNECTION=mysql \
DB_PORT=3306 \
DB_DATABASE=hogwarts \
DB_USERNAME=hogwarts \
CACHE_DRIVER=array \
QUEUE_DRIVER=array \
SEED_DATABASE=false \
ADMIN_USER=bourgouinadrien@paparenard.online \
ADMIN_PASSWORD=pookie
# Note : the mysql database is sometime long to init
ADD docker/wait-for-it.sh /usr/local/bin/
ADD docker/start.sh /