# FROM python:3.10.9 # WORKDIR /code # RUN mkdir /code/cache # COPY ./requirements.txt /code/requirements.txt # RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # COPY . . # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] FROM python:3.10.9 WORKDIR /code RUN mkdir /code/cache && chmod a+rwx /code/cache && chmod a+rwx /code COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt ENV FASTF1_CACHE_DIR="/code/cache" # Add the following lines to create the main.db file RUN touch /code/main.db RUN chmod a+rwx /code/main.db COPY . . CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]