Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -4
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# syntax=docker/dockerfile:1.6
|
| 2 |
|
| 3 |
# ===== Python base (3.9) =====
|
| 4 |
-
ARG PY_BASE=python:3.9-slim
|
| 5 |
FROM ${PY_BASE}
|
| 6 |
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
@@ -26,10 +26,17 @@ WORKDIR /app
|
|
| 26 |
|
| 27 |
# Install Python deps first for better layer caching
|
| 28 |
COPY requirements.txt .
|
|
|
|
| 29 |
RUN python -m pip install --upgrade pip setuptools wheel \
|
| 30 |
-
&& pip install -r requirements.txt
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
# Copy the rest of your app
|
| 35 |
COPY . .
|
|
|
|
| 1 |
# syntax=docker/dockerfile:1.6
|
| 2 |
|
| 3 |
# ===== Python base (3.9) =====
|
| 4 |
+
ARG PY_BASE=python:3.9-slim-bullseye
|
| 5 |
FROM ${PY_BASE}
|
| 6 |
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
| 26 |
|
| 27 |
# Install Python deps first for better layer caching
|
| 28 |
COPY requirements.txt .
|
| 29 |
+
|
| 30 |
RUN python -m pip install --upgrade pip setuptools wheel \
|
| 31 |
+
&& pip install -r requirements.txt
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
RUN pip install --no-deps \
|
| 36 |
+
"en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.2.0/en_core_web_sm-3.2.0-py3-none-any.whl" \
|
| 37 |
+
&& python -m spacy validate
|
| 38 |
+
|
| 39 |
+
|
| 40 |
|
| 41 |
# Copy the rest of your app
|
| 42 |
COPY . .
|