Delete Dockerfile
Browse files- Dockerfile +0 -34
Dockerfile
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
FROM python:3.10-slim
|
2 |
-
|
3 |
-
# Set environment variables for consistent builds
|
4 |
-
ENV PYTHONUNBUFFERED=1
|
5 |
-
ENV VENV_PATH=/opt/venv
|
6 |
-
|
7 |
-
# Install system dependencies from apt.txt
|
8 |
-
COPY apt.txt .
|
9 |
-
RUN apt-get update && \
|
10 |
-
xargs -a apt.txt apt-get install -y && \
|
11 |
-
rm -rf /var/lib/apt/lists/*
|
12 |
-
|
13 |
-
# Create and activate virtual environment
|
14 |
-
RUN python -m venv $VENV_PATH
|
15 |
-
ENV PATH="$VENV_PATH/bin:$PATH"
|
16 |
-
|
17 |
-
# Upgrade pip in virtual environment
|
18 |
-
RUN pip install --upgrade pip
|
19 |
-
|
20 |
-
# Install Python dependencies in virtual environment
|
21 |
-
COPY requirements.txt .
|
22 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
23 |
-
|
24 |
-
# Set working directory
|
25 |
-
WORKDIR /app
|
26 |
-
|
27 |
-
# Copy app code
|
28 |
-
COPY app.py .
|
29 |
-
|
30 |
-
# Expose port for Hugging Face Spaces
|
31 |
-
EXPOSE 7860
|
32 |
-
|
33 |
-
# Run Streamlit app using virtual environment
|
34 |
-
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|