20 lines
No EOL
640 B
Docker
20 lines
No EOL
640 B
Docker
FROM $FROM
|
|
RUN apt-get -qq update && \
|
|
apt-get -qy upgrade && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
# Install a funky cool repl.
|
|
RUN composer global require -q psy/psysh:@stable && \
|
|
ln -s /root/.composer/vendor/psy/psysh/bin/psysh /usr/local/bin/repl && \
|
|
/usr/local/bin/repl -v
|
|
|
|
COPY psysh-config.php /root/.config/psysh/config.php
|
|
|
|
# On build, add anything in with Dockerfile into /app
|
|
ONBUILD ADD ./ /app
|
|
|
|
# If composer.json/composer.lock exist, do a composer install.
|
|
ONBUILD RUN composer install; exit 0
|
|
ONBUILD RUN composer dumpautoload -o; exit 0
|
|
ONBUILD RUN /usr/bin/install-report |