Build both python 3.5 and 2.7 images from the same env

This commit is contained in:
Soam Vasani
2017-11-09 14:01:02 -08:00
parent d8844ab13c
commit bcf04b1a6c
9 changed files with 25 additions and 10 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM alpine:3.5
RUN apk update
RUN apk add --no-cache python python-dev build-base py-pip
RUN pip install --upgrade pip
RUN rm -r /root/.cache
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
ENTRYPOINT ["python"]
CMD ["server.py"]