forked from hello-robot/stretch_ai
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
76 lines (61 loc) · 1.72 KB
/
Dockerfile
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM nvidia/cuda:11.8.0-base-ubuntu22.04
# Set up timezone
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install basic dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
git-lfs \
wget \
&& rm -rf /var/lib/apt/lists/*
# Install Python
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python-is-python3 \
&& rm -rf /var/lib/apt/lists/*
# Python3 dev
RUN apt-get update && apt-get install -y \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Install opencv dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libsm6 \
libxext6\
&& rm -rf /var/lib/apt/lists/*
# Audio dependencies - for PyAudio
RUN apt-get update && apt-get install -y \
libasound-dev \
portaudio19-dev \
libportaudio2 \
libportaudiocpp0 \
&& rm -rf /var/lib/apt/lists/*
# Add espeak for text-to-speech
RUN apt-get update && apt-get install -y \
espeak \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Install mamba
RUN curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
RUN bash Miniforge3-$(uname)-$(uname -m).sh -b
# Add mamba to the path
ENV PATH /root/miniforge3/bin:$PATH
# Run our installation script
COPY . .
RUN chmod +x install.sh
RUN ./install.sh -y
# Install ffmpeg dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libsm6 \
libxext6
# Copy requirements file (if you have one)
# COPY requirements.txt .
# Install Python packages (uncomment and modify as needed)
# RUN pip install --no-cache-dir -r requirements.txt
# Set the entrypoint
CMD ["/bin/bash"]