diff options
| author | n1c00o <git.n1c00o@gmail.com> | 2021-08-05 18:48:19 +0200 |
|---|---|---|
| committer | n1c00o <git.n1c00o@gmail.com> | 2021-08-05 18:48:19 +0200 |
| commit | 79e0ef3e62544d1208a677bdd2e7f2ad54b7aeb0 (patch) | |
| tree | 086d25f7732bf14f6ddc18050de074addaffec19 | |
| parent | ff7b6959f7483265096ea76724fcf308c6cd835c (diff) | |
Use Rust nigthly
| -rw-r--r-- | Dockerfile | 10 | ||||
| -rw-r--r-- | README.md | 2 |
2 files changed, 7 insertions, 5 deletions
@@ -1,9 +1,9 @@ -FROM rust:1alpine3.14 AS build -WORKDIR /tmp/clawflake -COPY . ./ -RUN cargo build --bin clawflake-server --release +FROM rustlang/rust:nightly-slim AS build +WORKDIR /app +COPY . /app +RUN cargo build --release --bin clawflake-server -FROM alpine:3.14 +FROM gcr.io/distroless/cc WORKDIR /app COPY --from=build /app/target/release/clawflake-server ./ CMD [ "./clawflake-server" ] @@ -12,6 +12,8 @@ An ID number is composed of: ## Usage +> You need to use the nightly toolchain! + Build the container ```sh |
