Skip to content

Commit

Permalink
Fix image docker
Browse files Browse the repository at this point in the history
  • Loading branch information
renatocassino committed Jan 20, 2019
1 parent 469ebec commit 8e78f3b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ RUN curl -sSL -o /tmp/composer-setup.php https://getcomposer.org/installer \
&& php /tmp/composer-setup.php --no-ansi --install-dir=/usr/local/bin --filename=composer --snapshot && rm -rf /tmp/composer-setup.php

ENV PATH=$PATH:$COMPOSER_HOME/vendor/bin
RUN curl https://raw.githubusercontent.com/tacnoman/dephpugger/master/installer.sh | bash

RUN composer global dump-autoload
COPY ./dephpugger.phar /usr/local/bin/dephpugger
RUN chmod +x /usr/local/bin/dephpugger

EXPOSE 8888

Expand Down
Binary file modified dephpugger.phar
Binary file not shown.
10 changes: 9 additions & 1 deletion publish-docker.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
VERSION=$(grep VERSION src/Dephpug/Dephpugger.php | sed -e "s/.*\'\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/g")
BASE_IMAGE="tacnoman/dephpugger"

echo "Update composer vendor libs"
composer update

echo "Create .phar file"
php create-phar.php

echo "Building version $BASE_IMAGE:$VERSION"

docker build -t $BASE_IMAGE:$VERSION .
Expand All @@ -9,4 +16,5 @@ echo "Publish image..."
docker push $BASE_IMAGE:$VERSION
docker push $BASE_IMAGE:latest

echo "Done ;D"
echo "Done ;D"

0 comments on commit 8e78f3b

Please sign in to comment.