File size: 483 Bytes
8111b6b
0eb79a8
8111b6b
 
 
0eb79a8
8111b6b
0eb79a8
8111b6b
 
0eb79a8
a0506c5
0eb79a8
8111b6b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.9

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /app

COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

RUN wget https://github.com/AI4EPS/models/releases/download/PhaseNet-2018/model.tar && tar -xvf model.tar && rm model.tar

COPY --chown=user . /app
ENTRYPOINT ["uvicorn", "--app-dir", "phasenet", "app:app", "--reload","--host", "0.0.0.0",  "--port", "7860"]