-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 685 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 685 Bytes
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
FROM --platform=linux/amd64 ubuntu:22.04
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
pkg-config \
ncurses-dev \
libssl-dev \
sudo
RUN git clone https://github.com/erlang/otp.git && \
cd otp && \
git checkout maint-27 && \
./configure && \
make -j16 && \
sudo make install
RUN git clone https://github.com/erlang/rebar3.git && \
cd rebar3 && \
./bootstrap && \
sudo mv rebar3 /usr/local/bin/
RUN git clone https://github.com/rust-lang/rust.git && \
cd rust && \
./configure && \
make && \
sudo make install
COPY . /app
RUN cd /app && \
rebar3 compile
CMD ["/bin/bash"]