Move Build Args into .env

This commit is contained in:
Jason Kendall 2020-01-30 09:34:17 -05:00
parent d13daa6f2d
commit 07e5ef035d
3 changed files with 3 additions and 5 deletions

2
.env Normal file
View File

@ -0,0 +1,2 @@
MISP_TAG=2.4.121
PHP_VER=20180731

View File

@ -1,6 +1,5 @@
FROM python:3.7-slim-buster as builder
ENV DEBIAN_FRONTEND noninteractive
ARG VERSION=2.4.120
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
@ -15,7 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Build MISP Modules
WORKDIR /srv
RUN git clone --branch v${VERSION} --depth 1 https://github.com/MISP/misp-modules.git
RUN git clone --branch v${MISP_TAG} --depth 1 https://github.com/MISP/misp-modules.git
RUN mkdir /wheel
WORKDIR /srv/misp-modules
RUN sed -i 's/-e //g' REQUIREMENTS

View File

@ -1,6 +1,3 @@
ARG MISP_TAG=2.4.120
ARG PHP_VER=20180731
FROM composer as composer-build
ARG MISP_TAG
WORKDIR /tmp