SalZa2004 commited on
Commit
9136275
·
1 Parent(s): f9aa035

updated DockerFile

Browse files
Files changed (2) hide show
  1. Dockerfile +27 -10
  2. docker/Dockerfile +0 -33
Dockerfile CHANGED
@@ -1,20 +1,37 @@
1
- FROM python:3.10.0-slim
2
 
3
- WORKDIR /app
 
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- curl \
8
  git \
 
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- COPY requirements.txt ./
12
- COPY src/ ./src/
 
 
 
 
 
 
 
 
 
13
 
14
- RUN pip3 install -r requirements.txt
 
15
 
16
- EXPOSE 8501
 
17
 
18
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
 
19
 
20
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
1
+ FROM python:3.10-slim
2
 
3
+ # Avoid interactive prompts
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # System deps (important for RDKit / ML)
7
  RUN apt-get update && apt-get install -y \
 
 
8
  git \
9
+ git-lfs \
10
+ build-essential \
11
+ sqlite3 \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Install git-lfs
15
+ RUN git lfs install
16
+
17
+ # Set working directory
18
+ WORKDIR /app
19
+
20
+ # Copy dependency files first (better caching)
21
+ COPY requirements.txt .
22
+
23
+ RUN pip install --upgrade pip setuptools wheel \
24
+ && pip install -r requirements.txt
25
 
26
+ # Copy the rest of the project
27
+ COPY . .
28
 
29
+ # Editable install
30
+ RUN pip install -e .
31
 
32
+ # Default command (can override)
33
+ # Expose Gradio port
34
+ EXPOSE 7860
35
 
36
+ # Run Gradio app
37
+ CMD ["python", "app.py"]
docker/Dockerfile DELETED
@@ -1,33 +0,0 @@
1
- FROM python:3.10-slim
2
-
3
- # Avoid interactive prompts
4
- ENV DEBIAN_FRONTEND=noninteractive
5
-
6
- # System deps (important for RDKit / ML)
7
- RUN apt-get update && apt-get install -y \
8
- git \
9
- git-lfs \
10
- build-essential \
11
- sqlite3 \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # Install git-lfs
15
- RUN git lfs install
16
-
17
- # Set working directory
18
- WORKDIR /app
19
-
20
- # Copy dependency files first (better caching)
21
- COPY requirements.txt .
22
-
23
- RUN pip install --upgrade pip setuptools wheel \
24
- && pip install -r requirements.txt
25
-
26
- # Copy the rest of the project
27
- COPY . .
28
-
29
- # Editable install
30
- RUN pip install -e .
31
-
32
- # Default command (can override)
33
- CMD ["bash"]