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 e7192f3 commit 311ea9fCopy full SHA for 311ea9f
python_test_example/Dockerfile
@@ -0,0 +1,4 @@
1
+FROM python:3.7-slim
2
+
3
+RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
4
+ && pip install --no-cache-dir requests flask
python_test_example/Makefile
@@ -0,0 +1,15 @@
+image = unittest
+tag = 0.1.0
+curdir := `pwd`
5
+.PHONY: dbuild
6
+dbuild:
7
+ docker build -t $(image):$(tag) .
8
9
+.PHONY: drun
10
+drun:
11
+ docker run --rm -it -v $(curdir):/opt -w /opt $(image):$(tag) bash
12
13
+.PHONY: all_test
14
+all_test:
15
+ python3 -m unittest discover --verbose --pattern "*_test.py"
0 commit comments