forked from Video-Reason/VBVR-EvalKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (48 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
58 lines (48 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
ARG DEBIAN_FRONTEND=noninteractive
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PYTHONUNBUFFERED=1 \
HF_HOME=/workspace/.cache/huggingface \
TORCH_HOME=/workspace/.cache/torch \
TRANSFORMERS_CACHE=/workspace/.cache/transformers
# Install system dependencies (Python 3.10 is default in Ubuntu 22.04)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
git \
wget \
ffmpeg \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libgomp1 \
python3 \
python3-dev \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Upgrade pip
RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel
# Set working directory
WORKDIR /workspace
# Copy requirements and install Python dependencies
COPY requirements.txt /workspace/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . /workspace
# Install package in editable mode
RUN pip install --no-cache-dir -e .
# Create necessary directories for weights, cache, and data
RUN mkdir -p /workspace/weights \
/workspace/.cache/huggingface \
/workspace/.cache/torch \
/workspace/.cache/transformers \
/workspace/data/questions \
/workspace/data/outputs \
/workspace/data/scorings
# Expose Web Dashboard port
EXPOSE 5000
# Default command
CMD ["bash"]