tracinginsights/api
1
1# FROM python:3.10.92 3# WORKDIR /code4 5# RUN mkdir /code/cache6 7# COPY ./requirements.txt /code/requirements.txt8 9# RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt10 11# COPY . .12 13# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]14 15FROM python:3.10.916 17WORKDIR /code18 19RUN mkdir /code/cache && chmod a+rwx /code/cache && chmod a+rwx /code20 21 22COPY ./requirements.txt /code/requirements.txt23 24RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt25 26ENV FASTF1_CACHE_DIR="/code/cache"27 28# Add the following lines to create the main.db file29RUN touch /code/main.db30RUN chmod a+rwx /code/main.db31 32COPY . .33 34CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]35 36 