odaly commited on
Commit
9d77633
·
verified ·
1 Parent(s): 43589e0

create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +35 -0
dockerfile ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image from the Docker Hub
2
+ FROM python:3.10
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /home/user/app
6
+
7
+ # Install system dependencies
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
+ # Install specific versions of pip and Python packages
21
+ RUN pip install --no-cache-dir pip==22.3.1 && \
22
+ pip install --no-cache-dir \
23
+ datasets \
24
+ "huggingface-hub>=0.19" \
25
+ "hf-transfer>=0.1.4" \
26
+ "protobuf<4" \
27
+ "click<8.1" \
28
+ "pydantic~=2.8"
29
+
30
+ # Copy requirements file and install Python dependencies
31
+ COPY --chown=1000:1000 requirements.txt /tmp/requirements.txt
32
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
33
+
34
+ # Copy the rest of the application code
35
+ COPY --chown=1000:1000 . /home/user/app