mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-05 06:00:31 +00:00
Fixing docker file.
This commit is contained in:
parent
c16ab3b7f0
commit
9457e5add7
@ -20,7 +20,7 @@ COPY server/Cargo.toml server/Cargo.lock ./
|
|||||||
# this build step will cache your dependencies
|
# this build step will cache your dependencies
|
||||||
RUN mkdir -p ./src/bin \
|
RUN mkdir -p ./src/bin \
|
||||||
&& echo 'fn main() { println!("Dummy") }' > ./src/bin/main.rs
|
&& 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-*
|
RUN rm -r ./target/release/.fingerprint/lemmy_server-*
|
||||||
|
|
||||||
# copy your source tree
|
# copy your source tree
|
||||||
@ -29,8 +29,8 @@ COPY server/src ./src/
|
|||||||
COPY server/migrations ./migrations/
|
COPY server/migrations ./migrations/
|
||||||
|
|
||||||
# build for release
|
# build for release
|
||||||
RUN cargo build --frozen --release --bin lemmy
|
RUN cargo build --frozen --release
|
||||||
RUN mv /app/server/target/release/lemmy /app/lemmy
|
RUN mv /app/server/target/release/lemmy_server /app/lemmy
|
||||||
|
|
||||||
# Get diesel-cli on there just in case
|
# Get diesel-cli on there just in case
|
||||||
# RUN cargo install diesel_cli --no-default-features --features postgres
|
# RUN cargo install diesel_cli --no-default-features --features postgres
|
||||||
|
Loading…
Reference in New Issue
Block a user