ccds commited on
Commit
566d057
·
1 Parent(s): 2348376
Files changed (2) hide show
  1. .gitattributes +1 -0
  2. Dockerfile +6 -3
.gitattributes CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ *.json filter=lfs diff=lfs merge=lfs -text
Dockerfile CHANGED
@@ -3,7 +3,7 @@
3
  # FROM python:3.11.1-slim-bullseye as compile-image
4
  FROM python:3.9.15-slim-bullseye as compile-image
5
 
6
- ENV POETRY_VERSION=1.3.1
7
 
8
  RUN export DEBIAN_FRONTEND=noninteractive && \
9
  apt-get update && \
@@ -28,6 +28,9 @@ 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"]
 
3
  # FROM python:3.11.1-slim-bullseye as compile-image
4
  FROM python:3.9.15-slim-bullseye as compile-image
5
 
6
+ ENV POETRY_VERSION=1.5.1
7
 
8
  RUN export DEBIAN_FRONTEND=noninteractive && \
9
  apt-get update && \
 
28
  COPY ./app /app
29
  WORKDIR /
30
  # use for huggingface
31
+ # RUN mkdir -p /app/.model && \
32
+ # chmod 777 -R /app
33
+
34
+
35
+
36
  CMD ["python", "-m","app.main"]