summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@free.fr>2018-03-21 00:53:25 +0200
committerMartin Peres <martin.peres@free.fr>2018-03-21 00:53:25 +0200
commitb51644bf65962aba58d6f46b9da582c5aa661148 (patch)
tree28da3bc0be29160bdfe2cde2855383440caaab6c
parent08dfcac28d00a944a43fcbe6050835057e641e07 (diff)
add a Dockerfile to generate a container ready to run our testsHEADmaster
l---------.dockerignore1
-rw-r--r--Dockerfile14
2 files changed, 15 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 120000
index 0000000..3e4e48b
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1 @@
+.gitignore \ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..cd9ec99
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+# Use an official Python runtime as a parent image
+#FROM python:3.6
+FROM alpine:edge
+RUN apk add --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --no-cache python3 python3-dev py3-pip build-base libffi-dev libgit2-dev bash py3-requests py3-bottle py3-numpy py3-dateutil py3-pygit2 py3-mako py3-scipy
+
+# Set the working directory to /app
+WORKDIR /app
+
+ADD . /app
+
+RUN pip3 install --no-cache-dir protobuf
+
+# Run app.py when the container launches
+CMD ["./unit_tests/main.py"]