feat: docker hosting
This commit is contained in:
1 parent
8e5bdd373a
commit
02a39a4906
3 files changed
+20
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
FROM rust:1.91.1 as build
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-musl && \
|
||||
apt update && \
|
||||
apt install -y musl-tools musl-dev && \
|
||||
update-ca-certificates
|
||||
|
||||
COPY ./src ./src
|
||||
COPY ./Cargo.lock .
|
||||
COPY ./Cargo.toml .
|
||||
|
||||
RUN cargo build --target x86_64-unknown-linux-musl --release
|
||||
|
||||
ENTRYPOINT ["./target/x86_64-unknown-linux-musl/release/connect4-moderator-server"]
|
||||
Reference in new issue
Block a user