-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
17 lines (16 loc) · 995 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM rust:slim-bullseye
# set noninteractive installation
RUN export DEBIAN_FRONTEND=noninteractive
WORKDIR /build
# install tzdata package
RUN apt-get update
RUN apt-get install -y tzdata
# set your timezone
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get update
RUN apt-get install -y clang gcc curl git wget cmake ninja-build
RUN curl -LO https://github.com/rui314/mold/releases/download/v1.5.0/mold-1.5.0-x86_64-linux.tar.gz && tar xvf mold-1.5.0-x86_64-linux.tar.gz && mv mold-1.5.0-x86_64-linux/libexec/* /usr/libexec/ && mv mold-1.5.0-x86_64-linux/bin/* /usr/bin/
RUN apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev lld libwayland-dev libxkbcommon-dev wayland-protocols llvm libclang-dev -y
RUN rustup target add wasm32-unknown-unknown && rustup component add rust-src
CMD cd /build/ && CARGO_HOME=/build/.cargo_home make build