Skip to content

Commit b713f5d

Browse files
committed
Failsafe - do not allow building if git submodules were not updated
1 parent a429938 commit b713f5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ FROM python:3.6-slim-stretch as build-backend
99
COPY ./ /netflowbot/
1010
WORKDIR /netflowbot
1111
RUN \
12+
ls pynetflow/netflow/__init__.py || (echo "Make sure you run 'git submodule update --init --recursive'!" && exit 1) && \
1213
rm -rf .git/ tests/ .vscode/ .pytest_cache/ __pycache__/ && \
1314
find ./ ! -name '*.py' -type f -exec rm '{}' ';' && \
1415
python3.6 -m compileall -b ./ && \

0 commit comments

Comments
 (0)