chocolatedesue commited on
Commit
2348376
1 Parent(s): b9ccf6e

fix dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -25,7 +25,9 @@ EXPOSE 7860
25
  COPY --from=compile-image /opt/venv /opt/venv
26
  # COPY ./app/init_jptalk.py /app/init_jptalk.py
27
  ENV TZ=Asia/Shanghai PATH="/opt/venv/bin:$PATH"
28
-
29
  COPY ./app /app
30
  WORKDIR /
 
 
 
31
  CMD ["python", "-m","app.main"]
 
25
  COPY --from=compile-image /opt/venv /opt/venv
26
  # COPY ./app/init_jptalk.py /app/init_jptalk.py
27
  ENV TZ=Asia/Shanghai PATH="/opt/venv/bin:$PATH"
 
28
  COPY ./app /app
29
  WORKDIR /
30
+ # use for huggingface
31
+ RUN mkdir -p /app/.model && \
32
+ chmod 777 -R /app
33
  CMD ["python", "-m","app.main"]