sahanes commited on
Commit
aed682b
·
verified ·
1 Parent(s): 435ecfc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,17 +1,18 @@
 
1
  FROM python:3.10-slim
2
 
3
  # Install system dependencies
4
  RUN apt-get update && \
5
- apt-get install -y build-essential && \
6
- apt-get install -y python3-dev && \
7
- apt-get install -y libatlas-base-dev
8
 
9
  # Upgrade pip and setuptools
10
  RUN pip install --upgrade pip setuptools
11
 
12
  # Install Cython and NumPy
13
- RUN pip install cython
14
- RUN pip install numpy
 
 
15
 
16
  # Copy and install the requirements file
17
  COPY requirements.txt /app/requirements.txt
@@ -21,8 +22,7 @@ RUN pip install -r /app/requirements.txt
21
  WORKDIR /app
22
 
23
  # Copy the application code
24
- COPY . .
25
 
26
  # Command to run your application
27
  CMD ["python", "app.py"]
28
-
 
1
+ # Use a base image with Python and necessary libraries
2
  FROM python:3.10-slim
3
 
4
  # Install system dependencies
5
  RUN apt-get update && \
6
+ apt-get install -y build-essential gfortran libopenblas-dev liblapack-dev python3-dev
 
 
7
 
8
  # Upgrade pip and setuptools
9
  RUN pip install --upgrade pip setuptools
10
 
11
  # Install Cython and NumPy
12
+ RUN pip install cython numpy
13
+
14
+ # Install Hugging Face transformers and datasets
15
+ RUN pip install transformers datasets
16
 
17
  # Copy and install the requirements file
18
  COPY requirements.txt /app/requirements.txt
 
22
  WORKDIR /app
23
 
24
  # Copy the application code
25
+ COPY . /app
26
 
27
  # Command to run your application
28
  CMD ["python", "app.py"]