Created
May 6, 2023 00:21
-
-
Save BenHerbst/70d4c2fa79dc20d71eb0c434c30173cb to your computer and use it in GitHub Desktop.
Flask Hot Reload Dockerfile + Compose
This file contains 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
version: '3' | |
services: | |
backend: | |
container_name: Backend | |
image: site/backend:latest | |
volumes: | |
- ./backend/:/app/ | |
ports: | |
- "5000:5000" |
This file contains 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 python:3.10 | |
WORKDIR /app | |
COPY requirements.txt requirements.txt | |
RUN pip3 install -r requirements.txt | |
CMD ["flask", "run", "--host=0.0.0.0", "--debug"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment