1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 08:12:27 +00:00

Dockerfiles not ignored anymore

This commit is contained in:
J. Fernando Sánchez 2016-12-14 17:06:50 +01:00
parent 4dee623ef9
commit 8624562f02
3 changed files with 11 additions and 0 deletions

5
Dockerfile-2.7 Normal file
View File

@ -0,0 +1,5 @@
from python:2.7-onbuild
RUN pip install .
ENTRYPOINT ["python", "-m", "senpy", "-f", ".", "--host", "0.0.0.0"]

5
Dockerfile-3.4 Normal file
View File

@ -0,0 +1,5 @@
from python:3.4-onbuild
RUN pip install .
ENTRYPOINT ["python", "-m", "senpy", "-f", ".", "--host", "0.0.0.0"]

View File

@ -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-$*