feat: optimize Dockerfile for HuggingFace Spaces deployment
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -63,7 +63,7 @@ COPY api/ api/
|
|
63 |
WORKDIR /app/api
|
64 |
|
65 |
# Install poetry and dependencies
|
66 |
-
RUN pip install --no-cache-dir poetry==1.8.3 gunicorn gevent && \
|
67 |
poetry config virtualenvs.create false && \
|
68 |
poetry install --no-dev --no-interaction --no-ansi
|
69 |
|
@@ -80,7 +80,7 @@ RUN useradd -m -u 1000 user && \
|
|
80 |
# Install runtime dependencies
|
81 |
RUN apt-get install -y --no-install-recommends \
|
82 |
nodejs npm libgmp-dev libmpfr-dev libmpc-dev && \
|
83 |
-
pip install --no-cache-dir gunicorn gevent nltk && \
|
84 |
python -m nltk.downloader punkt averaged_perceptron_tagger
|
85 |
|
86 |
# Set up directory structure
|
|
|
63 |
WORKDIR /app/api
|
64 |
|
65 |
# Install poetry and dependencies
|
66 |
+
RUN pip install --no-cache-dir poetry==1.8.3 gunicorn gevent pydantic-settings && \
|
67 |
poetry config virtualenvs.create false && \
|
68 |
poetry install --no-dev --no-interaction --no-ansi
|
69 |
|
|
|
80 |
# Install runtime dependencies
|
81 |
RUN apt-get install -y --no-install-recommends \
|
82 |
nodejs npm libgmp-dev libmpfr-dev libmpc-dev && \
|
83 |
+
pip install --no-cache-dir gunicorn gevent nltk pydantic-settings && \
|
84 |
python -m nltk.downloader punkt averaged_perceptron_tagger
|
85 |
|
86 |
# Set up directory structure
|