LVKinyanjui commited on
Commit
73716ef
1 Parent(s): 4e92ca6

Added python dependencies

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -2,9 +2,6 @@ FROM ubuntu:22.04
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt .
6
- RUN pip install -r requirements.txt --no-cache-dir
7
-
8
  RUN apt-get update && \
9
  apt-get install -y \
10
  git \
@@ -12,6 +9,10 @@ RUN apt-get update && \
12
  python3-pip && \
13
  rm -rf /var/lib/apt/lists/*
14
 
 
 
 
 
15
  # Install a specific version of the transformers library
16
  # That implements OLMoE
17
  RUN git init && \
@@ -21,7 +22,7 @@ RUN git remote add origin https://github.com/huggingface/transformers.git
21
  RUN git fetch origin pull/32406/head:pr-32406
22
  RUN git checkout pr-32406
23
 
24
- RUN pip install -e .[all]
25
 
26
  COPY . .
27
 
 
2
 
3
  WORKDIR /app
4
 
 
 
 
5
  RUN apt-get update && \
6
  apt-get install -y \
7
  git \
 
9
  python3-pip && \
10
  rm -rf /var/lib/apt/lists/*
11
 
12
+ # General python dependencies
13
+ COPY requirements.txt .
14
+ RUN pip3 install -r requirements.txt --no-cache-dir
15
+
16
  # Install a specific version of the transformers library
17
  # That implements OLMoE
18
  RUN git init && \
 
22
  RUN git fetch origin pull/32406/head:pr-32406
23
  RUN git checkout pr-32406
24
 
25
+ RUN pip3 install -e .[all]
26
 
27
  COPY . .
28