From 7b18bd89679a0b782ddd001396b054733323c1b7 Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Fri, 23 Apr 2021 23:01:14 +0530 Subject: [PATCH] fix dockerfile --- Dockerfile | 8 +++----- src/main.rs | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31073fd..88703fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,19 +3,17 @@ FROM rust:1.51 as builder # ENV CARGO_HOME=/actix-demo/.cargo RUN USER=root cargo new --bin actix-demo WORKDIR /actix-demo + # COPY ./.cargo ./.cargo COPY ./Cargo.toml ./Cargo.toml COPY ./Cargo.lock ./Cargo.lock RUN cargo build --release -RUN rm src/*.rs +RUN rm -r src/*.rs COPY ./src ./src - -#RUN rm ./target/release/deps/actix-demo* +RUN rm ./target/release/deps/actix_demo* RUN cargo build --release - - FROM debian:buster-slim ARG APP=/usr/src/app diff --git a/src/main.rs b/src/main.rs index 220d689..a03d92d 100755 --- a/src/main.rs +++ b/src/main.rs @@ -109,6 +109,5 @@ async fn main() -> std::io::Result<()> { } else { server.bind(addr)? }; - println!("whoops"); server.run().await }