Skip to content

Instantly share code, notes, and snippets.

@ak9999
Created February 6, 2020 01:09
Show Gist options
  • Save ak9999/c9ec54a5ccf1335ade5ecc1a856a7f9e to your computer and use it in GitHub Desktop.
Save ak9999/c9ec54a5ccf1335ade5ecc1a856a7f9e to your computer and use it in GitHub Desktop.
Here's a dummy docker file. Assume this is in a top level folder that has some folder called `contained` with an __init__.py in there that runs the app.
FROM python:3.7-slim
COPY contained /src/app/contained
WORKDIR /src/app
RUN pip install Flask
ENV FLASK_APP contained
CMD ["flask", "run", "--host=0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment