Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -7
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
#
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
-
# Install required
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
git \
|
| 7 |
git-lfs \
|
|
@@ -15,14 +15,17 @@ RUN apt-get update && apt-get install -y \
|
|
| 15 |
&& rm -rf /var/lib/apt/lists/* \
|
| 16 |
&& git lfs install
|
| 17 |
|
| 18 |
-
# Set working directory
|
| 19 |
WORKDIR /home/user/app
|
| 20 |
|
| 21 |
-
# Copy application files
|
| 22 |
COPY . /home/user/app
|
| 23 |
|
| 24 |
-
# Install Python dependencies
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a Python 3.10 base image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
+
# Install system dependencies (including required libraries)
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
git \
|
| 7 |
git-lfs \
|
|
|
|
| 15 |
&& rm -rf /var/lib/apt/lists/* \
|
| 16 |
&& git lfs install
|
| 17 |
|
| 18 |
+
# Set the working directory inside the container
|
| 19 |
WORKDIR /home/user/app
|
| 20 |
|
| 21 |
+
# Copy application files to the container
|
| 22 |
COPY . /home/user/app
|
| 23 |
|
| 24 |
+
# Install Python dependencies from requirements.txt
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
| 27 |
+
# Expose the port for Streamlit
|
| 28 |
+
EXPOSE 8501
|
| 29 |
+
|
| 30 |
+
# Command to run the Streamlit app
|
| 31 |
+
CMD ["streamlit", "run", "app.py"]
|