Skip to content

Instantly share code, notes, and snippets.

@moshfiqur
Created May 20, 2019 21:24
Show Gist options
  • Save moshfiqur/6debe2c7bd387191c527f22235a61260 to your computer and use it in GitHub Desktop.
Save moshfiqur/6debe2c7bd387191c527f22235a61260 to your computer and use it in GitHub Desktop.
Dockerfile for Demo Flask App deployed on Google App Engine
FROM python:3.6
WORKDIR /usr/src/app
# To avoid invalidating docker's build
# cache everytime we are copying the app
# into the image, we will copy the
# requirements.txt first and then in later
# step we will copy the entire app
COPY requirements.txt /usr/src/app/
RUN pip install -r requirements.txt
COPY . /usr/src/app/
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment