Skip to content

Instantly share code, notes, and snippets.

@BenHerbst
Created May 6, 2023 00:21
Show Gist options
  • Save BenHerbst/70d4c2fa79dc20d71eb0c434c30173cb to your computer and use it in GitHub Desktop.
Save BenHerbst/70d4c2fa79dc20d71eb0c434c30173cb to your computer and use it in GitHub Desktop.
Flask Hot Reload Dockerfile + Compose
version: '3'
services:
backend:
container_name: Backend
image: site/backend:latest
volumes:
- ./backend/:/app/
ports:
- "5000:5000"
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