mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 12:11:19 +03:00
Improved docker image generation
This commit is contained in:
parent
f9318bb1b3
commit
cea50a860e
2 changed files with 5 additions and 7 deletions
|
@ -15,11 +15,8 @@ vendor
|
|||
docs
|
||||
indocker
|
||||
docker-*
|
||||
php*
|
||||
.php*
|
||||
phpstan.neon
|
||||
infection.json
|
||||
**/test*
|
||||
build*
|
||||
.git*
|
||||
.scrutinizer.yml
|
||||
.travis.yml
|
||||
**/.*
|
||||
|
|
|
@ -40,9 +40,10 @@ RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8
|
|||
FROM base as builder
|
||||
COPY . .
|
||||
COPY --from=composer:1.10.1 /usr/bin/composer ./composer.phar
|
||||
RUN php composer.phar install --no-dev --optimize-autoloader --prefer-dist --no-progress --no-interaction && \
|
||||
RUN apk add --no-cache git && \
|
||||
php composer.phar install --no-dev --optimize-autoloader --prefer-dist --no-progress --no-interaction && \
|
||||
php composer.phar clear-cache && \
|
||||
rm composer.* && \
|
||||
rm -r docker composer.* && \
|
||||
sed -i "s/%SHLINK_VERSION%/${SHLINK_VERSION}/g" config/autoload/app_options.global.php
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue