From bb482ddebfe0960ff4824770876d1bb2953d9e14 Mon Sep 17 00:00:00 2001 From: Jason Kendall Date: Wed, 11 Dec 2019 09:31:09 -0500 Subject: [PATCH] Move versions and make them 'global' --- server/Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index befb627..bed3748 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,6 +1,10 @@ +ARG MISP_TAG=2.4.118 +ARG PHP_VER=20180731 + FROM composer as composer-build + ARG MISP_TAG WORKDIR /tmp - ADD https://raw.githubusercontent.com/MISP/MISP/v2.4.118/app/composer.json /tmp + ADD https://raw.githubusercontent.com/MISP/MISP/v${MISP_TAG}/app/composer.json /tmp RUN composer install --ignore-platform-reqs FROM debian:buster-slim as php-build @@ -60,8 +64,8 @@ FROM debian:buster-slim as python-build FROM debian:buster-slim ENV DEBIAN_FRONTEND noninteractive -ARG MISP_TAG=2.4.118 -ARG PHP_VER=20180731 +ARG MISP_TAG +ARG PHP_VER # OS Packages RUN apt-get update; apt-get install -y --no-install-recommends \