Skip to content

Commit

Permalink
move php composer dependency into composer-build stage
Browse files Browse the repository at this point in the history
  • Loading branch information
garritschroeder0001 committed Mar 15, 2021
1 parent 9977d92 commit c21dabd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM composer:1.9 as composer-build
ARG MISP_TAG
WORKDIR /tmp
ADD https://raw.githubusercontent.com/MISP/MISP/${MISP_TAG}/app/composer.json /tmp
RUN composer install --ignore-platform-reqs
RUN composer install --ignore-platform-reqs && \
composer require jumbojett/openid-connect-php --ignore-platform-reqs

FROM debian:buster-slim as php-build
RUN apt-get update; apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -154,9 +155,6 @@ ARG PHP_VER
# Make a copy of the configurations, so we can sync from it
RUN cp -R /var/www/MISP/app/Config /var/www/MISP/app/Config.dist

# Intall Open ID Connect dependency
RUN cd /var/www/MISP/app && php composer.phar require jumbojett/openid-connect-php

# Entrypoints
COPY files/etc/supervisor/supervisor.conf /etc/supervisor/conf.d/supervisord.conf
COPY files/entrypoint_fpm.sh /
Expand Down

0 comments on commit c21dabd

Please sign in to comment.