credify / Dockerfile
garvitcpp's picture
Replace Firebase Storage with local temp files
8edb4df
raw
history blame contribute delete
523 Bytes
FROM python:3.9.18
WORKDIR /code
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
ffmpeg
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN mkdir -m 777 /tmp/NUMBA_CACHE_DIR
ENV NUMBA_CACHE_DIR=/tmp/NUMBA_CACHE_DIR/
COPY . /code/
# Firebase has been removed. Temp file storage is used instead.
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]