-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 813 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 813 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
FROM rust:1.90
# Install needed packages and clean up
RUN apt update && \
apt install -y --no-install-recommends lsb-release wget gnupg gcc-multilib git && \
rm -rf /var/lib/apt/lists/*
# Install clang and clean up
RUN wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 17 && \
ln -s $(which clang-17) /usr/bin/clang && \
ln -s $(which llvm-ar-17) /usr/bin/llvm-ar && \
rm llvm.sh
# Install rust target
RUN rustup target install wasm32-wasip1
# Install cargo-msfs
RUN cargo install --git https://github.com/navigraph/cargo-msfs
# Cache bust arg to re-install both SDKs
ARG CACHEBUST
# Install MSFS2020 SDK
RUN cargo-msfs install msfs2020
# Needed when running in CI/CD to avoid dubious ownership errors
RUN git config --global --add safe.directory /workspace