Bodyless commited on
Commit
bc2ce08
·
verified ·
1 Parent(s): 4598c00

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -1,27 +1,22 @@
1
 
2
  FROM nvcr.io/nvidia/pytorch:23.09-py3
3
 
4
-
5
  WORKDIR /app
6
 
7
-
8
  RUN apt-get update && apt-get install -y \
9
  curl \
10
  git \
11
  build-essential \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
-
15
  COPY requirements.txt ./
 
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
-
19
  RUN python3 -m spacy download en_core_web_sm
20
 
21
-
22
  COPY src/ ./src/
23
 
24
-
25
  EXPOSE 8501
26
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
27
 
 
1
 
2
  FROM nvcr.io/nvidia/pytorch:23.09-py3
3
 
 
4
  WORKDIR /app
5
 
 
6
  RUN apt-get update && apt-get install -y \
7
  curl \
8
  git \
9
  build-essential \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
12
  COPY requirements.txt ./
13
+ RUN pip install --no-cache-dir numpy==1.24.4
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
16
  RUN python3 -m spacy download en_core_web_sm
17
 
 
18
  COPY src/ ./src/
19
 
 
20
  EXPOSE 8501
21
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
22