do not use buildpacks just use dockerfile to deploy
pull official base image
FROM python:3.10.6
set work directory
WORKDIR /usr/src/app
set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
create the app directory - and switch to it
RUN mkdir -p /app
WORKDIR /app
install dependencies
COPY requirements.txt /tmp/requirements.txt
RUN set -ex &&
pip install --upgrade pip &&
pip install -r /tmp/requirements.txt &&
rm -rf /root/.cache/
copy project
COPY . /app/