mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
13 lines
539 B
Docker
13 lines
539 B
Docker
FROM php:7.1.3
|
|
RUN apt-get update -y && apt-get install -y openssl zip unzip git zlib1g-dev netcat mysql-client
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
RUN docker-php-ext-install pdo pdo_mysql zip
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN composer install
|
|
|
|
COPY wait.sh /usr/local/bin/wait.sh
|
|
RUN chmod +x /usr/local/bin/wait.sh
|
|
CMD /usr/local/bin/wait.sh && composer dumpautoload && php artisan migrate && php artisan db:seed && php artisan serve --host=0.0.0.0 --port=8000
|
|
EXPOSE 8000
|