We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5761239 commit e6bc089Copy full SHA for e6bc089
Containerfile
@@ -0,0 +1,25 @@
1
+FROM archlinux:base-devel
2
+
3
+RUN pacman -Sy --noconfirm alsa-lib
4
5
+WORKDIR /jolteon
6
7
+COPY rust-toolchain.toml rustfmt.toml .clippy.toml Cargo.toml Cargo.lock .
8
9
+RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
10
+RUN chmod a+x rustup.sh
11
+RUN ./rustup.sh -y
12
13
+ENV PATH="$HOME/.cargo/bin:$PATH"
14
+ENV PATH="/root/.cargo/bin:$PATH"
15
16
+RUN rustup target add x86_64-unknown-linux-gnu
17
+RUN rustc --target=x86_64-unknown-linux-gnu --print target-cpus
18
+RUN rustc --print target-list
19
20
+COPY src src
21
+COPY assets assets
22
23
+RUN cargo build --locked --release --target=x86_64-unknown-linux-gnu
24
25
+CMD /bin/sh
0 commit comments