Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -24,7 +24,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 24 |
&& rm -rf /var/lib/apt/lists/* \
|
| 25 |
&& git lfs install
|
| 26 |
|
| 27 |
-
# Upgrade pip and install common packages.
|
| 28 |
RUN pip install --upgrade pip && \
|
| 29 |
pip install --no-cache-dir \
|
| 30 |
datasets \
|
|
@@ -34,10 +34,10 @@ RUN pip install --upgrade pip && \
|
|
| 34 |
"click<8.1" \
|
| 35 |
"pydantic~=1.0"
|
| 36 |
|
| 37 |
-
# Copy
|
| 38 |
COPY requirements.txt .
|
| 39 |
|
| 40 |
-
#
|
| 41 |
RUN pip install --no-cache-dir --no-binary :all: scrapely==0.13.2
|
| 42 |
|
| 43 |
# Install the rest of your Python dependencies.
|
|
@@ -46,8 +46,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 46 |
# Copy the rest of your application code.
|
| 47 |
COPY . .
|
| 48 |
|
| 49 |
-
#
|
| 50 |
EXPOSE 8501
|
| 51 |
|
| 52 |
-
# Set the default command
|
| 53 |
CMD ["python", "app.py"]
|
|
|
|
| 24 |
&& rm -rf /var/lib/apt/lists/* \
|
| 25 |
&& git lfs install
|
| 26 |
|
| 27 |
+
# Upgrade pip and install some common packages.
|
| 28 |
RUN pip install --upgrade pip && \
|
| 29 |
pip install --no-cache-dir \
|
| 30 |
datasets \
|
|
|
|
| 34 |
"click<8.1" \
|
| 35 |
"pydantic~=1.0"
|
| 36 |
|
| 37 |
+
# Copy the requirements file.
|
| 38 |
COPY requirements.txt .
|
| 39 |
|
| 40 |
+
# Install Scrapely separately as a pure-Python package.
|
| 41 |
RUN pip install --no-cache-dir --no-binary :all: scrapely==0.13.2
|
| 42 |
|
| 43 |
# Install the rest of your Python dependencies.
|
|
|
|
| 46 |
# Copy the rest of your application code.
|
| 47 |
COPY . .
|
| 48 |
|
| 49 |
+
# Expose port 8501 (or adjust if your app uses a different port).
|
| 50 |
EXPOSE 8501
|
| 51 |
|
| 52 |
+
# Set the default command.
|
| 53 |
CMD ["python", "app.py"]
|