This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
captain-definition
25 lines (25 loc) · 1.69 KB
/
captain-definition
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
{
"schemaVersion": 2,
"dockerfileLines" :[
"FROM php:7.4.3",
"RUN apt-get update && apt-get install -y git curl wget nano unzip zip zlib1g-dev && rm -r /var/lib/apt/lists/",
"RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli",
"RUN mkdir -p /usr/local/bin/ && curl -s -o installer.php \"https://getcomposer.org/installer\" && php installer.php --install-dir=/usr/local/bin --filename=composer && rm -f installer.php",
"RUN mkdir -p /var/www/html/dist",
"COPY ./dist/ /var/www/html/dist",
"COPY ./composer.json /var/www/html",
"RUN composer install -d /var/www/html",
"COPY ./credentials.php /var/www/html",
"ARG mysqlhost=${mysqlhost}",
"ARG mysqlport=${mysqlport}",
"ARG mysqluser=${mysqluser}",
"ARG mysqlpassword=${mysqlpassword}",
"ARG mysqldb=${mysqldb}",
"ARG AWS_BUCKET=${AWS_BUCKET}",
"ARG AWS_KEY=${AWS_KEY}",
"ARG AWS_SECRKET=${AWS_SECRKET}",
"RUN ( echo mysqlhost=$mysqlhost; echo mysqlport=$mysqlport; echo mysqluser=$mysqluser; echo mysqlpassword=$mysqlpassword; echo mysqldb=$mysqldb; echo AWS_BUCKET=$AWS_BUCKET; echo AWS_KEY=$AWS_KEY; echo AWS_SECRKET=$AWS_SECRKET) > /var/www/html/.env",
"CMD [ \"php\", \"-S\", \"[::]:80\", \"-t\", \"/var/www/html/dist\" ]",
"EXPOSE 80"
]
}