-
Notifications
You must be signed in to change notification settings - Fork 100
/
Dockerfile
41 lines (35 loc) · 1.04 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
FROM ubuntu:20.04
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8 \
PATH=~/.local/bin:$PATH \
DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq && apt-get install -y \
build-essential \
curl \
clang \
cmake \
git \
g++ \
libssl-dev \
llvm \
netcat \
pkg-config \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/* \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install nodejs && npm -g install [email protected] yarn
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- -y --no-modify-path --default-toolchain nightly-2020-05-15
RUN curl -L https://golang.org/dl/go1.16.linux-amd64.tar.gz --output go1.16.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
WORKDIR /usr/src
COPY . .
RUN yarn
ENV PATH /usr/local/go/bin:$PATH
RUN go version
RUN sh -c "./utils/scripts/docker_prepare.sh"
CMD ["sh", "-c", "./utils/scripts/docker_start.sh"]