Spaces:
Sleeping
Sleeping
FROM python:3.10 | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirments.txt | |
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y | |
RUN apt-get clean | |
RUN apt-get install -y ffmpeg | |
RUN pip install --no-cache-dir --upgrade -r /code/requirments.txt | |
COPY . . | |
RUN chmod -R 777 ./DataBase | |
RUN chmod -R 777 ./static | |
RUN chmod -R 777 ./FaceRecognition/ExtactedFaces | |
RUN chmod -R 777 ./FaceRecognition/FaceModel | |
RUN chmod -R 777 ./IndoorLocalization/Data | |
RUN chmod -R 777 ./IndoorLocalization/IndoorModels | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |