Build both python 3.5 and 2.7 images from the same env
This commit is contained in:
@@ -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"]
|
||||
|
||||
+10
-9
@@ -128,16 +128,17 @@ build_and_push_all_envs() {
|
||||
version=$1
|
||||
|
||||
# call with version, env dir, image name base, image name variant
|
||||
build_and_push_env_image "$version" "nodejs" "node-env" ""
|
||||
build_and_push_env_image "$version" "nodejs" "node-env" "debian"
|
||||
build_and_push_env_image "$version" "binary" "binary-env" ""
|
||||
build_and_push_env_image "$version" "dotnet" "dotnet-env" ""
|
||||
build_and_push_env_image "$version" "nodejs" "node-env" ""
|
||||
build_and_push_env_image "$version" "nodejs" "node-env" "debian"
|
||||
build_and_push_env_image "$version" "binary" "binary-env" ""
|
||||
build_and_push_env_image "$version" "dotnet" "dotnet-env" ""
|
||||
build_and_push_env_image "$version" "dotnet20" "dotnet20-env" ""
|
||||
build_and_push_env_image "$version" "go" "go-env" ""
|
||||
build_and_push_env_image "$version" "perl" "perl-env" ""
|
||||
build_and_push_env_image "$version" "php7" "php-env" ""
|
||||
build_and_push_env_image "$version" "python3" "python-env" ""
|
||||
build_and_push_env_image "$version" "ruby" "ruby-env" ""
|
||||
build_and_push_env_image "$version" "go" "go-env" ""
|
||||
build_and_push_env_image "$version" "perl" "perl-env" ""
|
||||
build_and_push_env_image "$version" "php7" "php-env" ""
|
||||
build_and_push_env_image "$version" "python" "python-env" ""
|
||||
build_and_push_env_image "$version" "python" "python-env" "2.7"
|
||||
build_and_push_env_image "$version" "ruby" "ruby-env" ""
|
||||
}
|
||||
|
||||
build_charts() {
|
||||
|
||||
@@ -21,7 +21,7 @@ build_and_push_fetcher $FETCHER_IMAGE:$TAG
|
||||
|
||||
build_builder
|
||||
|
||||
ENV='python3'
|
||||
ENV='python'
|
||||
|
||||
build_and_push_env_runtime $ENV $REPO/$ENV-env:$TAG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user