From 8624562f02743d0c143fdea00cdd2eb28785b294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Wed, 14 Dec 2016 17:06:50 +0100 Subject: [PATCH] Dockerfiles not ignored anymore --- Dockerfile-2.7 | 5 +++++ Dockerfile-3.4 | 5 +++++ Makefile | 1 + 3 files changed, 11 insertions(+) create mode 100644 Dockerfile-2.7 create mode 100644 Dockerfile-3.4 diff --git a/Dockerfile-2.7 b/Dockerfile-2.7 new file mode 100644 index 0000000..c4953ad --- /dev/null +++ b/Dockerfile-2.7 @@ -0,0 +1,5 @@ +from python:2.7-onbuild + +RUN pip install . + +ENTRYPOINT ["python", "-m", "senpy", "-f", ".", "--host", "0.0.0.0"] diff --git a/Dockerfile-3.4 b/Dockerfile-3.4 new file mode 100644 index 0000000..a6e979e --- /dev/null +++ b/Dockerfile-3.4 @@ -0,0 +1,5 @@ +from python:3.4-onbuild + +RUN pip install . + +ENTRYPOINT ["python", "-m", "senpy", "-f", ".", "--host", "0.0.0.0"] diff --git a/Makefile b/Makefile index 5388540..962f998 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ VERSION=$(shell cat $(NAME)/VERSION) all: build run dockerfiles: $(addprefix Dockerfile-,$(PYVERSIONS)) + ln -s Dockerfile-{PYMAIN} Dockerfile Dockerfile-%: Dockerfile.template sed "s/{{PYVERSION}}/$*/" Dockerfile.template > Dockerfile-$*