hemantn commited on
Commit
b95065c
·
1 Parent(s): 7b0cb5f

more functionality added in docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -6
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  build-essential \
@@ -9,12 +9,13 @@ RUN apt-get update && apt-get install -y \
9
  bash \
10
  muscle \
11
  hmmer \
12
- && rm -rf /var/lib/apt/lists/*
 
13
 
14
  # Set working directory
15
  WORKDIR /app
16
 
17
- # Install Python dependencies directly
18
  RUN pip install --no-cache-dir \
19
  gradio==4.44.0 \
20
  transformers==4.36.0 \
@@ -25,10 +26,12 @@ RUN pip install --no-cache-dir \
25
  rotary-embedding-torch==0.8.9 \
26
  huggingface-hub>=0.19.0
27
 
28
- # Clone ANARCI repository and install it
29
- RUN git clone https://github.com/oxpig/ANARCI.git && \
30
  cd ANARCI && \
31
- pip install .
 
 
32
 
33
  # Copy application files
34
  COPY app.py .
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies in a single layer
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  build-essential \
 
9
  bash \
10
  muscle \
11
  hmmer \
12
+ && rm -rf /var/lib/apt/lists/* \
13
+ && apt-get clean
14
 
15
  # Set working directory
16
  WORKDIR /app
17
 
18
+ # Install Python dependencies in a single layer for better caching
19
  RUN pip install --no-cache-dir \
20
  gradio==4.44.0 \
21
  transformers==4.36.0 \
 
26
  rotary-embedding-torch==0.8.9 \
27
  huggingface-hub>=0.19.0
28
 
29
+ # Clone and install ANARCI in a single layer
30
+ RUN git clone --depth 1 https://github.com/oxpig/ANARCI.git && \
31
  cd ANARCI && \
32
+ pip install . && \
33
+ cd .. && \
34
+ rm -rf ANARCI
35
 
36
  # Copy application files
37
  COPY app.py .