added docker file
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
FROM alpine
|
||||||
|
|
||||||
|
ENV \
|
||||||
|
APP_DIR="/app" \
|
||||||
|
APP_PORT="80"
|
||||||
|
|
||||||
|
# the "app" directory (relative to Dockerfile) containers your Laravel app...
|
||||||
|
COPY app/ $APP_DIR
|
||||||
|
|
||||||
|
RUN apk add --update \
|
||||||
|
curl \
|
||||||
|
php \
|
||||||
|
php-opcache \
|
||||||
|
php-openssl \
|
||||||
|
php-pdo \
|
||||||
|
php-json \
|
||||||
|
php-phar \
|
||||||
|
php-dom \
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
RUN curl -sS https://getcomposer.org/installer | php -- \
|
||||||
|
--install-dir=/usr/bin --filename=composer
|
||||||
|
|
||||||
|
RUN cd $APP_DIR && composer install
|
||||||
|
|
||||||
|
WORKDIR $APP_DIR
|
||||||
|
CMD php artisan serve --host=0.0.0.0 --port=$APP_PORT
|
||||||
Reference in New Issue
Block a user