make running tests optional in docker build
This commit is contained in:
1 parent
1d0b568b1e
commit
7964c687f6
3 files changed
+7
-2
No files matched your search
+3
-1
@@ -4,9 +4,11 @@ WORKDIR /extract
|
||||
|
||||
COPY . .
|
||||
|
||||
ARG run_tests=true
|
||||
|
||||
RUN apt-get update && apt-get install -y libzbar0 python3-opencv nano \
|
||||
&& pip install -r requirements.txt \
|
||||
&& /extract/run_pytest.sh
|
||||
&& if [[ "$run_tests" == "true" ]] ; then /extract/run_pytest.sh ; else echo "Not running tests..." ; fi
|
||||
|
||||
WORKDIR /files
|
||||
|
||||
|
||||
Reference in new issue
Block a user