Created
April 22, 2019 09:09
-
-
Save akmamun/fb88114aa34ac8dd2ee3061e978d10b9 to your computer and use it in GitHub Desktop.
Python flask app dockerize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from alpine:latest | |
| RUN apk add --no-cache python3-dev \ | |
| && pip3 install --upgrade pip | |
| WORKDIR /app | |
| COPY . /app | |
| RUN pip3 --no-cache-dir install -r requirements.txt | |
| EXPOSE 5000 | |
| ENTRYPOINT ["python3"] | |
| CMD ["app.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment