Rename Dockerfile.txt to Dockerfile
Browse files- Dockerfile +31 -0
- Dockerfile.txt +0 -29
Dockerfile
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Base image
|
| 2 |
+
FROM python:3.10-bullseye
|
| 3 |
+
|
| 4 |
+
# İşçi qovluq
|
| 5 |
+
WORKDIR /home/user/app
|
| 6 |
+
|
| 7 |
+
# Sistem asılılıqları
|
| 8 |
+
RUN apt-get update && apt-get install -y \
|
| 9 |
+
git \
|
| 10 |
+
git-lfs \
|
| 11 |
+
ffmpeg \
|
| 12 |
+
libsm6 \
|
| 13 |
+
libxext6 \
|
| 14 |
+
cmake \
|
| 15 |
+
rsync \
|
| 16 |
+
libgl1-mesa-glx \
|
| 17 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 18 |
+
&& git lfs install
|
| 19 |
+
|
| 20 |
+
# Python asılılıqları
|
| 21 |
+
COPY requirements.txt .
|
| 22 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
+
|
| 24 |
+
# Proyekt fayllarını kopyala
|
| 25 |
+
COPY . .
|
| 26 |
+
|
| 27 |
+
# Gradio port
|
| 28 |
+
EXPOSE 7860
|
| 29 |
+
|
| 30 |
+
# Container işə düşəndə run olunacaq
|
| 31 |
+
CMD ["python", "app.py"]
|
Dockerfile.txt
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
FROM python:3.9-slim
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
WORKDIR /app
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
RUN apt-get update && apt-get install -y \
|
| 8 |
-
build-essential \
|
| 9 |
-
curl \
|
| 10 |
-
git \
|
| 11 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
COPY requirements.txt ./
|
| 15 |
-
COPY src/ ./src/
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
RUN pip3 install -r requirements.txt
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
EXPOSE 8501
|
| 23 |
-
|
| 24 |
-
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|