fix dockerfile

This commit is contained in:
Rohan Sircar 2021-04-23 23:01:14 +05:30
parent bbdd9b9abd
commit 7b18bd8967
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -109,6 +109,5 @@ async fn main() -> std::io::Result<()> {
} else {
server.bind(addr)?
};
println!("whoops");
server.run().await
}