cooperchris17 commited on
Commit
7dddf14
·
verified ·
1 Parent(s): a83feda

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -17
Dockerfile CHANGED
@@ -1,18 +1,18 @@
1
- FROM python:3.12-slim
2
-
3
- WORKDIR /app
4
-
5
- # Copy default.zip
6
- COPY default.zip /app/stanza_resources
7
-
8
- # Install dependencies
9
- COPY requirements.txt .
10
- RUN pip install --upgrade pip && \
11
- pip install --no-cache-dir -r requirements.txt
12
-
13
- # Copy your application code
14
- COPY . .
15
-
16
- EXPOSE 5000
17
-
18
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "ConstructionComplexityCalculator:app"]
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # unzip Stanza models
6
+ RUN unzip -d /app/stanza_resources /app/stanza_resources/default.zip
7
+
8
+ # Install dependencies
9
+ COPY requirements.txt .
10
+ RUN pip install --upgrade pip && \
11
+ pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy your application code
14
+ COPY . .
15
+
16
+ EXPOSE 5000
17
+
18
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "ConstructionComplexityCalculator:app"]