forked from attendee-labs/attendee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
100 lines (78 loc) · 2.5 KB
/
Dockerfile
File metadata and controls
100 lines (78 loc) · 2.5 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
FROM --platform=linux/amd64 ubuntu:22.04 AS base
SHELL ["/bin/bash", "-c"]
ENV project=attendee
ENV cwd=/$project
WORKDIR $cwd
ARG DEBIAN_FRONTEND=noninteractive
# Install Dependencies
RUN apt-get update \
&& apt-get install -y \
build-essential \
ca-certificates \
cmake \
curl \
gdb \
git \
gfortran \
libopencv-dev \
libdbus-1-3 \
libgbm1 \
libgl1-mesa-glx \
libglib2.0-0 \
libglib2.0-dev \
libssl-dev \
libx11-dev \
libx11-xcb1 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-shape0 \
libxcb-shm0 \
libxcb-xfixes0 \
libxcb-xtest0 \
libgl1-mesa-dri \
libxfixes3 \
linux-libc-dev \
pkgconf \
python3-pip \
tar \
unzip \
zip \
vim \
libpq-dev
# Install Chrome dependencies
RUN apt-get install -y xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps libvulkan1 fonts-liberation xdg-utils wget
# Install a specific version of Chrome.
RUN wget -q http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_134.0.6998.88-1_amd64.deb
RUN apt-get install -y ./google-chrome-stable_134.0.6998.88-1_amd64.deb
# Install ALSA
RUN apt-get update && apt-get install -y libasound2 libasound2-plugins alsa alsa-utils alsa-oss
# Install Pulseaudio
RUN apt-get install -y pulseaudio pulseaudio-utils ffmpeg
# Install Linux Kernel Dev
RUN apt-get update && apt-get install -y linux-libc-dev
# Install Ctags
RUN apt-get update && apt-get install -y universal-ctags
# Install xterm
RUN apt-get update && apt-get install -y xterm
# Install python dependencies
RUN pip install pyjwt cython gdown deepgram-sdk python-dotenv
# Install gstreamer
RUN apt-get install -y gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgirepository1.0-dev --fix-missing
# Alias python3 to python
RUN ln -s /usr/bin/python3 /usr/bin/python
FROM base AS deps
# Copy only requirements.txt first to leverage Docker cache
COPY requirements.txt .
RUN pip install -r requirements.txt
ENV TINI_VERSION=v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
WORKDIR /opt
FROM deps AS build
WORKDIR $cwd
COPY . .
COPY entrypoint.sh /opt/bin/entrypoint.sh
RUN chmod +x /opt/bin/entrypoint.sh
RUN adduser root pulse-access
# CMD ["/bin/bash"] is added in entrypoint.sh