huh
Browse files- Dockerfile +18 -1
Dockerfile
CHANGED
@@ -1,9 +1,26 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
COPY requirements.txt .
|
5 |
RUN pip install --no-cache-dir -r requirements.txt
|
6 |
|
|
|
|
|
|
|
7 |
COPY . .
|
|
|
8 |
EXPOSE 8501
|
9 |
-
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
WORKDIR /app
|
4 |
+
|
5 |
+
# Install system packages needed for fairseq and spacy models
|
6 |
+
RUN apt-get update && apt-get install -y \
|
7 |
+
build-essential \
|
8 |
+
cmake \
|
9 |
+
git \
|
10 |
+
curl \
|
11 |
+
&& rm -rf /var/lib/apt/lists/*
|
12 |
+
|
13 |
+
# Downgrade pip to 24.0 before installing any packages
|
14 |
+
RUN pip install --upgrade pip==24.0
|
15 |
+
|
16 |
+
# Install Python dependencies
|
17 |
COPY requirements.txt .
|
18 |
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
|
20 |
+
# Download spaCy model
|
21 |
+
RUN python -m spacy download en_core_web_sm
|
22 |
+
|
23 |
COPY . .
|
24 |
+
|
25 |
EXPOSE 8501
|
26 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|