Flask
Instructions for connecting your Flask apps and deploying them on ToyStack
Step 1: Ensure your app is Dockerised
FROM python:3.8
ENV PYTHONUNBUFFERED 1
RUN mkdir /workdir
WORKDIR /workdir
COPY requirements.txt /workdir/
RUN pip install --upgrade pip wheel
RUN pip install -r requirements.txt
COPY . /workdir/
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=5000"]Step 2: Import your Git repository
Step 3: Input environment variables
Step 4: Choose a plan

Step 5: Deploy
Last updated