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
+11
View File
@@ -0,0 +1,11 @@
FROM alpine:3.5
RUN apk update
RUN apk add --no-cache python3 python3-dev build-base
RUN pip3 install --upgrade pip
RUN rm -r /root/.cache
ADD defaultBuildCmd /usr/local/bin/build
ADD builder /builder
EXPOSE 8001
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
pip3 install -r ${SRC_PKG}/requirements.txt -t ${SRC_PKG} && cp -r ${SRC_PKG} ${DEPLOY_PKG}