-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (49 loc) · 1.48 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
FROM ubuntu:22.04 AS base
# Install base tools.
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
zip \
unzip
# Install JUCE dependencies.
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
clang \
cmake \
ninja-build \
pkg-config \
openssh-client \
libasound2-dev \
libjack-jackd2-dev \
ladspa-sdk \
libcurl4-openssl-dev \
libfreetype6-dev \
libx11-dev \
libxcomposite-dev \
libxcursor-dev \
libxext-dev \
libxinerama-dev \
libxrandr-dev \
libxrender-dev \
libwebkit2gtk-4.0-dev \
libglu1-mesa-dev \
mesa-common-dev
# Make sure clang is the default compiler:
RUN DEBIAN_FRONTEND=noninteractive \
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-14 100
RUN DEBIAN_FRONTEND=noninteractive \
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-14 100
# Install Deno environment.
RUN curl -fsSL https://deno.land/x/install/install.sh | sh \
&& echo 'export DENO_INSTALL="$HOME/.deno"' >> ~/.bash_profile \
&& echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> ~/.bash_profile
# Install Node.js environment with Volta.
RUN curl https://get.volta.sh | bash \
&& . ~/.bash_profile \
&& volta install node \
&& npm install -g npm
# Copy this workspace.
COPY . /app
WORKDIR /app
CMD ["/bin/bash", "-c", "source ~/.bash_profile && bash"]