Docker: copy example env file when building

This commit is contained in:
Birkhoff Lee
2019-12-10 23:40:59 +08:00
parent 3692373cd2
commit c474e98925

View File

@ -36,6 +36,7 @@ COPY . /app
COPY --from=composer /app/vendor /app/vendor
RUN touch database/database.sqlite && \
cp .env.example .env && \
php artisan config:cache && \
php artisan passport:keys && \
php artisan key:generate && \