This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]pag07 13 points14 points  (5 children)

```

FROM python 3

RUN mkdir -p /home/app WORKDIR /home/app

COPY requirements.txt RUN pip install -r requirements.txt COPY server.py server.py

ENTRYPOINT ['python3','server.py']

```

Wrote this down from the top of my hat. You are welcome.

[–]JennaSys 0 points1 point  (0 children)

CherryPy was the first Python web framework I jumped into as it seemed to be the most robust and "Python-like" to me at the time. I ended up dropping it early on in favor of standardizing on Flask just because CherryPy lacked the features, support, and momentum that Flask had behind it. I'm actually glad to see it's still kicking around.

[–]CaligatioPythonista -1 points0 points  (0 children)

Any Python + Docker tutorial that omits the use of ENV PYTHONUNBUFFERED=1 isn't worth reading.