-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (40 loc) · 1.2 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
# Define an argument with a default value
ARG source_container=""
FROM $source_container
ARG db_host=""
ARG app_url=""
ARG app_key=""
ARG db_host=""
ARG db_port=""
ARG db_username="promplanner"
ARG db_password="prom"
ARG aws_access_key_id=""
ARG aws_secret_access_key=""
ARG aws_default_region=""
ARG aws_bucket=""
ARG aws_use_path_style_endpoint=""
ARG $mail_username=""
ARG $mail_password=""
ARG $paypal_sandbox_client_id=""
ARG $paypal_sandbox_client_secret=""
ARG $asset_url=""
# Set important variables
ENV APP_URL=$app_url
ENV APP_KEY=$app_key
ENV DB_HOST=$db_host
ENV DB_USERNAME=$db_username
ENV DB_PASSWORD=$db_password
ENV AWS_ACCESS_KEY_ID=$aws_access_key_id
ENV AWS_SECRET_ACCESS_KEY=$aws_secret_access_key
ENV AWS_DEFAULT_REGION=$aws_default_region
ENV AWS_BUCKET=$aws_bucket
ENV AWS_USE_PATH_STYLE_ENDPOINT=$aws_use_path_style_endpoint
ENV MAIL_USERNAME=$mail_username
ENV MAIL_PASSWORD=$mail_password
ENV PAYPAL_SANDBOX_CLIENT_ID=$paypal_sandbox_client_id
ENV PAYPAL_SANDBOX_CLIENT_SECRET=$paypal_sandbox_client_secret
ENV ASSET_URL=$asset_url
ARG source_folder="super_admin"
# Command to copy a specific portal's contents
COPY /$source_folder /var/www/html
CMD php artisan serve --host 0.0.0.0 --port=80