-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
62 lines (51 loc) · 1.37 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM composer:2.0
WORKDIR /2fauth
RUN chown 1000:1000 /2fauth
USER 1000:1000
# $(php artisan key:generate) || $(head -c32 /dev/urandom | base64)
ENV APP_NAME=2FAuth \
APP_ENV=local \
APP_DEBUG=false \
APP_KEY=SomeRandomStringOf32CharsExactly \
APP_URL=0.0.0.0 \
APP_PORT=80 \
APP_TRIES=10 \
DB_CONNECTION=sqlite \
DB_DATABASE="/2fauth/database/database.sqlite" \
IS_DEMO_APP=false \
LOG_CHANNEL=daily \
APP_LOG_LEVEL=notice \
CACHE_DRIVER=file \
SESSION_DRIVER=file \
MAIL_DRIVER=log \
MAIL_HOST=smtp.mailtrap.io \
MAIL_PORT=2525 \
MAIL_USERNAME=null \
MAIL_PASSWORD=null \
MAIL_ENCRYPTION=null \
MAIL_FROM_NAME=null \
MAIL_FROM_ADDRESS=null \
BROADCAST_DRIVER=log \
QUEUE_DRIVER=sync \
SESSION_LIFETIME=12 \
REDIS_HOST=127.0.0.1 \
REDIS_PASSWORD=null \
REDIS_PORT=6379 \
PUSHER_APP_ID= \
PUSHER_APP_KEY= \
PUSHER_APP_SECRET= \
PUSHER_APP_CLUSTER=mt1 \
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" \
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" \
MIX_ENV=local
RUN git clone -q https://github.com/Bubka/2FAuth /2fauth
COPY ./startup.sh .
RUN mkdir -p /2fauth/database/ && touch /2fauth/database/database.sqlite
RUN composer -q install
RUN php artisan migrate:refresh
RUN php artisan passport:install
RUN php artisan storage:link
RUN php artisan config:cache
ENTRYPOINT ["/2fauth/startup.sh"]