Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ EOF

FROM php-base AS composer-build
ENV COMPOSER_ALLOW_SUPERUSER=1
ARG CORE_TAG
ARG CORE_COMMIT
ARG CORE_FLAVOR
ARG PHP_API_VERSION

WORKDIR /tmp
RUN curl -o /tmp/composer.json https://raw.githubusercontent.com/MISP/MISP/${CORE_COMMIT:-${CORE_TAG}}/app/composer.json
Expand All @@ -117,6 +121,10 @@ EOF

FROM php-base AS php-build
ENV TZ=Etc/UTC
ARG CORE_TAG
ARG CORE_COMMIT
ARG CORE_FLAVOR
ARG PHP_API_VERSION

RUN <<-EOF
if [ "${CORE_FLAVOR}" = "slim" ]; then
Expand Down Expand Up @@ -171,6 +179,10 @@ EOF


FROM php-base AS python-build
ARG CORE_TAG
ARG CORE_COMMIT
ARG CORE_FLAVOR
ARG PHP_API_VERSION

RUN apt-get install -y --no-install-recommends \
gcc \
Expand Down Expand Up @@ -254,6 +266,10 @@ EOF


FROM php-base
ARG CORE_TAG
ARG CORE_COMMIT
ARG CORE_FLAVOR
ARG PHP_API_VERSION

ENV PATH="/var/www/MISP/app/Console:${PATH}"

Expand Down