Skip to content

Commit e6bc089

Browse files
committed
chore: Containerfile
1 parent 5761239 commit e6bc089

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Containerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)