grim/containers/imfwiki

fd0d5343c2e3
Parents 1426a630983a
Children 205fe0c2cd16
Fix up composer so it doesn't make our image yuge
  • +8 -1
    Dockerfile
  • --- a/Dockerfile Tue Sep 01 23:20:01 2020 -0500
    +++ b/Dockerfile Tue Sep 01 23:39:12 2020 -0500
    @@ -4,6 +4,13 @@
    # Secure the upload directory
    COPY conf-enabled/ /etc/apache2/conf-enabled/
    +# install unzip as composer wants it
    +RUN set -ex && \
    + apt-get update && \
    + apt-get install -y --no-install-recommends unzip && \
    + apt-get clean && \
    + rm -rf /var/lib/apt/lists
    +
    # install composer as one of our extensions needs it
    RUN set -ex && \
    cd /usr/local/bin && \
    @@ -19,7 +26,7 @@
    cd MW-OAuth2Client && \
    git submodule update --init && \
    cd vendors/oauth2-client && \
    - composer.phar install
    + composer.phar install --no-dev --no-cache --prefer-dist
    # add a /config directory and point a symlink to a LocalSettings.php file which
    # is volume mounted in at run time.