Spaces:
Sleeping
Sleeping
FROM tiangolo/uvicorn-gunicorn:python3.10-slim | |
# Copy and install requirements.txt | |
COPY ./requirements.txt ./requirements.txt | |
COPY ./src /app | |
COPY ./scripts/start.sh /start.sh | |
COPY ./scripts/prestart.sh /app | |
COPY ./scripts/gunicorn_conf.py /gunicorn_conf.py | |
COPY ./scripts/start-reload.sh /start-reload.sh | |
COPY ./VERSION / | |
RUN mkdir -p /app/resources/model \ | |
&& pip install --no-cache-dir -r requirements.txt \ | |
&& chmod +x /start.sh && chmod +x /start-reload.sh | |
ARG MODEL_PATH | |
COPY ${MODEL_PATH}/* /app/resources/model/ | |
ENV APP_MODULE=main:app | |