dockerfile changes

This commit is contained in:
Michael (Parker) Parker 2018-08-04 19:21:51 -04:00
parent 1ac13c82fa
commit 63b76c60fb
5 changed files with 164 additions and 16 deletions

View file

@ -9,11 +9,13 @@ COPY . ./
RUN cp .dev/docker/default.conf /etc/nginx/conf.d/default.conf \
&& cp .dev/docker/www.conf /etc/php7/php-fpm.d/www.conf \
&& cp .env.example .env \
&& echo "APP_ENVIRONMENT_ONLY=false" > /app/.env \
&& echo "APP_KEY=" >> /app/.env \
&& mkdir /var/run/php \
&& composer install --no-dev
EXPOSE 80 443
RUN chown -R nginx:nginx . && chmod -R 777 storage/* bootstrap/cache
ENTRYPOINT ["ash", ".dev/app/entrypoint.sh"]
ENTRYPOINT ["ash", ".dev/docker/entrypoint.sh"]