File size: 554 Bytes
626eca0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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