summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn1c00o <git.n1c00o@gmail.com>2021-08-05 15:52:10 +0200
committern1c00o <git.n1c00o@gmail.com>2021-08-05 15:52:10 +0200
commit80829f06c132aca059954873a314ce5dead6a3bd (patch)
tree33b87884ea56a0bce8958605d115cdbefe617ee5
parent723fb463b7ad4b72741a8bd2de4520bf9dc96a27 (diff)
Updating Dockerfile (not finished)
-rw-r--r--Dockerfile9
1 files changed, 2 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile
index ff70f42..1231a0b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,6 @@
-FROM rust:alpine3.14 AS build
-RUN cargo install cargo-build-deps \
- && cd /tmp \
- && USER=root cargo new --bin clawflake
+FROM rust:1alpine3.14 AS build
WORKDIR /tmp/clawflake
-COPY Cargo.toml Cargo.lock ./
-RUN cargo build-deps --release
-COPY src /tmp/clawflake/src
+COPY . ./
RUN cargo build --bin clawflake-server --release
FROM alpine:3.14