Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge 1.8.1 patches #26

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name = "slimebot"
edition = "2021"
readme = "README.md"
license = "AGPL-3.0"
build = "build.rs"

[profile.release]
strip = true
Expand Down Expand Up @@ -61,8 +60,8 @@ pretty_assertions = "1.4.0"
temp-mongo = "0.1.3"

[build-dependencies]
built = { version = "0.7.3", features = ["git2"] }
git2 = { version = "0.18.3", features = ["vendored-libgit2"] }
built = { version = "0.7.4", features = ["git2"] }
git2 = { version = "0.19", features = ["vendored-libgit2"] }

[features]
default = ["wordle"]
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ COPY . .
RUN cargo +nightly chef prepare --recipe-path recipe.json

FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json
COPY --link --from=planner /app/recipe.json recipe.json
RUN cargo +nightly chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json
COPY . .
RUN cargo +nightly build --release --target x86_64-unknown-linux-musl --bin slimebot
RUN touch /app/build.rs
RUN cargo +nightly build --release --target x86_64-unknown-linux-musl

FROM alpine as runtime
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/slimebot /usr/local/bin/slimebot
FROM alpine AS runtime
COPY --link --from=builder /app/target/x86_64-unknown-linux-musl/release/slimebot /usr/local/bin/slimebot
EXPOSE 443
ENTRYPOINT ["slimebot"]
Loading