We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a744dae commit 2fdd13dCopy full SHA for 2fdd13d
docker-compose.yml
@@ -1,11 +1,14 @@
1
-version: "3.5"
+version: "3.8"
2
services:
3
4
cve_search:
5
image: cve_search
6
build:
7
context: .
8
dockerfile: docker/images/cve_search/dockerfile-cve_search
9
+ args:
10
+ - REPO=cve-search/cve-search
11
+ - BRANCH=master
12
hostname: cve_search
13
depends_on:
14
- redis
docker/images/cve_search/dockerfile-cve_search
@@ -10,7 +10,12 @@ ENV APP /app
RUN mkdir $APP
WORKDIR $APP
-RUN git clone https://github.com/cve-search/cve-search.git ./
+ARG REPO
+ARG BRANCH
15
+
16
+RUN echo "Using repo - branch: $REPO - $BRANCH"
17
18
+RUN git clone -b $BRANCH --single-branch https://github.com/$REPO.git ./
19
20
# Install the dependencies
21
RUN pip install -r requirements.txt
0 commit comments