From f2bdc78d2a6056d0bb7c22d892227c28198b144c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 5 May 2019 10:00:17 -0700 Subject: [PATCH] Fixing docker file. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e794b249..f30d57bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ COPY server/Cargo.toml server/Cargo.lock ./ # this build step will cache your dependencies RUN mkdir -p ./src/bin \ && echo 'fn main() { println!("Dummy") }' > ./src/bin/main.rs -RUN cargo build --release --bin lemmy +RUN cargo build --release RUN rm -r ./target/release/.fingerprint/lemmy_server-* # copy your source tree @@ -29,8 +29,8 @@ COPY server/src ./src/ COPY server/migrations ./migrations/ # build for release -RUN cargo build --frozen --release --bin lemmy -RUN mv /app/server/target/release/lemmy /app/lemmy +RUN cargo build --frozen --release +RUN mv /app/server/target/release/lemmy_server /app/lemmy # Get diesel-cli on there just in case # RUN cargo install diesel_cli --no-default-features --features postgres -- 2.44.1