Skip to content
Snippets Groups Projects
Commit bbfd46b8 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch...

Merge branch '413-docker-allow-using-core-image-as-base-image-for-app-distribution-images' into 'master'

Resolve "[Docker] Allow using core image as base image for app/distribution images"

Closes #413

See merge request !550
parents a92c83b3 0dc64b1e
No related branches found
No related tags found
1 merge request!550Resolve "[Docker] Allow using core image as base image for app/distribution images"
Pipeline #6681 passed
Pipeline: AlekSIS

#6682

    ......@@ -62,7 +62,7 @@ CMD ["/usr/local/bin/aleksis-docker-startup"]
    # Install assets
    FROM core as assets
    RUN eatmydata aleksis-admin yarn install; \
    eatmydata aleksis-admin collectstatic; \
    eatmydata aleksis-admin collectstatic --no-input; \
    rm -rf /usr/local/share/.cache
    # Clean up build dependencies
    ......@@ -74,11 +74,9 @@ RUN set -e; \
    libpq-dev \
    libssl-dev \
    libldap2-dev \
    libsasl2-dev \
    yarnpkg; \
    libsasl2-dev; \
    eatmydata apt-get autoremove --purge -y; \
    apt-get clean -y; \
    rm -f /var/lib/apt/lists/*_*; \
    rm -rf /root/.cache
    # Drop privileges for runtime to www-data
    ......@@ -89,3 +87,20 @@ RUN chown -R www-data:www-data \
    ${ALEKSIS_media__root} \
    ${ALEKSIS_backup__location}
    USER 33:33
    # Additional steps
    ONBUILD ARG APPS
    ONBUILD USER 0:0
    ONBUILD RUN set -e; \
    if [ -n "$APPS" ]; then \
    eatmydata pip install $APPS; \
    fi; \
    eatmydata aleksis-admin yarn install; \
    eatmydata aleksis-admin collectstatic --no-input; \
    rm -rf /usr/local/share/.cache; \
    eatmydata apt-get remove --purge -y yarnpkg; \
    eatmydata apt-get autoremove --purge -y; \
    apt-get clean -y; \
    rm -f /var/lib/apt/lists/*_*; \
    rm -rf /root/.cache
    ONBUILD USER 33:33
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment