From 8412062eeaa6e22368fdd64384ee40631fb32c56 Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 10 Nov 2020 19:13:59 +0100 Subject: [PATCH] Remove alpine dockerfile and rename scratch.dockerfile to Dockerfile I've given up. Signed-off-by: trivernis --- scratch.dockerfile => Dockerfile | 0 alpine.dockerfile | 18 ------------------ 2 files changed, 18 deletions(-) rename scratch.dockerfile => Dockerfile (100%) delete mode 100644 alpine.dockerfile diff --git a/scratch.dockerfile b/Dockerfile similarity index 100% rename from scratch.dockerfile rename to Dockerfile diff --git a/alpine.dockerfile b/alpine.dockerfile deleted file mode 100644 index 68ac16e..0000000 --- a/alpine.dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -FROM alpine AS builder -RUN apk add --no-cache build-base cargo -WORKDIR /usr/src -RUN USER=root cargo new snekcloud-server -WORKDIR /usr/src/snekcloud-server -COPY Cargo.toml Cargo.lock ./ -COPY src ./src -RUN cargo build --release -WORKDIR target/release/ -RUN ./snekcloud-server generate-key private_key -RUN timeout 1s ./snekcloud-server || exit 0 -RUN cp config/00_default.toml config/10_local.toml - -FROM alpine -COPY --from=builder /usr/src/snekcloud-server/target/release/snekcloud-server . -COPY --from=builder /usr/src/snekcloud-server/target/release/config / -COPY --from=builder /usr/src/snekcloud-server/target/release/private_key / -ENTRYPOINT ["./snekcloud-server"] \ No newline at end of file