diff options
| -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 |
