From: Dessalines Date: Sun, 5 May 2019 17:00:17 +0000 (-0700) Subject: Fixing docker file. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/%22https:/hacktivis.me/%7Bthis.captchaPngSrc%28%29%7D?a=commitdiff_plain;h=f2bdc78d2a6056d0bb7c22d892227c28198b144c;p=lemmy.git Fixing docker file. --- 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