From 79e0ef3e62544d1208a677bdd2e7f2ad54b7aeb0 Mon Sep 17 00:00:00 2001 From: n1c00o Date: Thu, 5 Aug 2021 18:48:19 +0200 Subject: Use Rust nigthly --- Dockerfile | 10 +++++----- README.md | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1231a0b..0ed7a69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/README.md b/README.md index 7b272a9..ffb5d18 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ An ID number is composed of: ## Usage +> You need to use the nightly toolchain! + Build the container ```sh -- cgit v1.2.3