Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +0 -8
Dockerfile
CHANGED
@@ -1,28 +1,20 @@
|
|
1 |
-
# Use the full Python image, not slim
|
2 |
FROM python:3.10
|
3 |
|
4 |
-
# Set environment variables
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
|
7 |
-
# Install OpenCV dependencies
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
libgl1 \
|
10 |
libglib2.0-0 \
|
11 |
ffmpeg \
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
-
# Create app directory
|
15 |
WORKDIR /app
|
16 |
|
17 |
-
# Copy all files
|
18 |
COPY . /app
|
19 |
|
20 |
-
# Install Python dependencies
|
21 |
RUN pip install --upgrade pip
|
22 |
RUN pip install -r requirements.txt
|
23 |
|
24 |
-
# Expose port (optional but good practice)
|
25 |
EXPOSE 7860
|
26 |
|
27 |
-
# Run the app (adjust according to your main file)
|
28 |
CMD ["python", "app.py"]
|
|
|
|
|
1 |
FROM python:3.10
|
2 |
|
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
libgl1 \
|
7 |
libglib2.0-0 \
|
8 |
ffmpeg \
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
|
|
11 |
WORKDIR /app
|
12 |
|
|
|
13 |
COPY . /app
|
14 |
|
|
|
15 |
RUN pip install --upgrade pip
|
16 |
RUN pip install -r requirements.txt
|
17 |
|
|
|
18 |
EXPOSE 7860
|
19 |
|
|
|
20 |
CMD ["python", "app.py"]
|