From bc4f58ef15fcf954f53f6a205dab83fc9b368928 Mon Sep 17 00:00:00 2001 From: stacksmith-bot Date: Fri, 7 Apr 2017 21:45:48 +0200 Subject: [PATCH] stacksmith: Add Dockerfile --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f87f0c2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +## BUILDING +## (from project root directory) +## $ docker build -t python-for-amanmohan-dockerflasknginxgunicorn . +## +## RUNNING +## $ docker run python-for-amanmohan-dockerflasknginxgunicorn + +FROM gcr.io/bitnami-containers/minideb-extras:jessie-r12-buildpack + +MAINTAINER Bitnami + +ENV STACKSMITH_STACK_ID="nnqb5zc" \ + STACKSMITH_STACK_NAME="Python for amanmohan/DockerFlaskNginxGunicorn" \ + STACKSMITH_STACK_PRIVATE="1" + +# Install required system packages +RUN install_packages libc6 libssl1.0.0 libncurses5 libtinfo5 zlib1g libsqlite3-0 libreadline6 + +RUN bitnami-pkg install python-2.7.13-0 --checksum 7f5aac196054c7eb04c981243b4ddf37020cc3eb8a7cdc69d72da57212b21573 + +ENV PATH=/opt/bitnami/python/bin:$PATH + +## STACKSMITH-END: Modifications below this line will be unchanged when regenerating + +# Python base template +COPY . /app +WORKDIR /app + +RUN pip install -r requirements.txt + +CMD ["python"]