zhuwq0 commited on
Commit
a0506c5
1 Parent(s): 4b94296
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -1,9 +1,5 @@
1
  FROM python:3.9
2
 
3
- RUN apt-get update && apt-get install -y git git-lfs && apt-get clean
4
- RUN git lfs install
5
- RUN git lfs pull
6
-
7
  RUN useradd -m -u 1000 user
8
  USER user
9
  ENV PATH="/home/user/.local/bin:$PATH"
@@ -15,9 +11,7 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
  # COPY phasenet /app/phasenet
17
  # COPY model /app/model
18
- # RUN wget https://github.com/AI4EPS/models/releases/download/PhaseNet-2018/model.tar && tar -xvf model.tar && rm model.tar
19
-
20
- # EXPOSE 80
21
 
22
  COPY --chown=user . /app
23
  ENTRYPOINT ["uvicorn", "--app-dir", "phasenet", "app:app", "--reload","--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
 
 
 
 
 
3
  RUN useradd -m -u 1000 user
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
 
11
 
12
  # COPY phasenet /app/phasenet
13
  # COPY model /app/model
14
+ RUN wget https://github.com/AI4EPS/models/releases/download/PhaseNet-2018/model.tar && tar -xvf model.tar && rm model.tar
 
 
15
 
16
  COPY --chown=user . /app
17
  ENTRYPOINT ["uvicorn", "--app-dir", "phasenet", "app:app", "--reload","--host", "0.0.0.0", "--port", "7860"]