bryankhelven commited on
Commit
d08d617
·
verified ·
1 Parent(s): 6b689eb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -1,18 +1,13 @@
1
  FROM pytorch/pytorch:1.9.0-cuda10.2-cudnn7-runtime
2
  RUN pip install "stanza>=1.2"
3
  WORKDIR /app
4
-
5
  COPY requirements.txt /app/requirements.txt
6
  RUN pip install -r requirements.txt && pip install requests
7
-
8
  COPY . /app
9
-
10
  ENV STANZA_RESOURCES_DIR=/app/stanza_resources
11
-
12
  RUN python - <<'PY'
13
  import stanza
14
- stanza.download('pt', dir='/app/stanza_resources', processors='tokenize,pos,lemma')
15
  PY
16
-
17
  ENV PORT=7860
18
  CMD sh -c 'gunicorn --bind 0.0.0.0:${PORT:-7860} --timeout 1200 app:app'
 
1
  FROM pytorch/pytorch:1.9.0-cuda10.2-cudnn7-runtime
2
  RUN pip install "stanza>=1.2"
3
  WORKDIR /app
 
4
  COPY requirements.txt /app/requirements.txt
5
  RUN pip install -r requirements.txt && pip install requests
 
6
  COPY . /app
 
7
  ENV STANZA_RESOURCES_DIR=/app/stanza_resources
 
8
  RUN python - <<'PY'
9
  import stanza
10
+ stanza.download('pt', model_dir='/app/stanza_resources')
11
  PY
 
12
  ENV PORT=7860
13
  CMD sh -c 'gunicorn --bind 0.0.0.0:${PORT:-7860} --timeout 1200 app:app'