-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (34 loc) · 811 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
37
38
39
40
41
42
43
FROM funxtionatics/php8-fpm-nginx-alpine
WORKDIR /var/www/
COPY --chown=nobody:nobody . .
# Image config
ENV SKIP_COMPOSER 1
ENV WEBROOT /var/www/html/public
ENV PHP_ERRORS_STDERR 1
ENV RUN_SCRIPTS 1
ENV REAL_IP_HEADER 1
# Laravel config
ENV APP_ENV testing
ENV APP_DEBUG false
ENV LOG_CHANNEL stderr
ARG LOG_PATH=logs/app.log
ARG LOG_LEVEL=DEBUG
ARG DB_ADAPTER=pgsql
ARG DB_HOSTNAME=localhost
ARG DB_DBNAME=paw
ARG DB_USERNAME=postgres
ARG DB_PASSWORD=
ARG DB_PORT=5432
#ENV LOG_PATH=logs/app.log
#ENV LOG_LEVEL=DEBUG
#ENV DB_ADAPTER=pgsql
#ENV DB_HOSTNAME=localhost
#ENV DB_DBNAME=paw
#ENV DB_USERNAME=postgres
#ENV DB_PASSWORD=
#ENV DB_PORT=5432
# Allow composer to run as root
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN composer update
RUN ./vendor/bin/phinx migrate
#CMD ["./vendor/bin/phinx", "migrate"]