mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 12:51:18 +00:00
Changing aarch64 to use cargo --release
This commit is contained in:
parent
2f94d814b3
commit
2535116f91
1 changed files with 6 additions and 6 deletions
12
docker/dev/Dockerfile.aarch64
vendored
12
docker/dev/Dockerfile.aarch64
vendored
|
@ -34,22 +34,22 @@ WORKDIR /app/server
|
||||||
COPY server/Cargo.toml server/Cargo.lock ./
|
COPY server/Cargo.toml server/Cargo.lock ./
|
||||||
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
|
RUN cargo build --release
|
||||||
RUN cargo build
|
# RUN cargo build
|
||||||
COPY server/src ./src/
|
COPY server/src ./src/
|
||||||
COPY server/migrations ./migrations/
|
COPY server/migrations ./migrations/
|
||||||
RUN rm -f ./target/release/deps/lemmy_server* ; rm -f ./target/debug/deps/lemmy_server*
|
RUN rm -f ./target/release/deps/lemmy_server* ; rm -f ./target/debug/deps/lemmy_server*
|
||||||
|
|
||||||
|
|
||||||
# build for release
|
# build for release
|
||||||
#RUN cargo build --frozen --release
|
RUN cargo build --frozen --release
|
||||||
RUN cargo build --frozen
|
# RUN cargo build --frozen
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
RUN cp /app/server/target/debug/lemmy_server /app/server/ready
|
# RUN cp /app/server/target/debug/lemmy_server /app/server/ready
|
||||||
#RUN cp /app/server/target/release/lemmy_server /app/server/ready
|
RUN cp /app/server/target/release/lemmy_server /app/server/ready
|
||||||
|
|
||||||
#FROM alpine:3.10
|
#FROM alpine:3.10
|
||||||
# debian because build with dynamic linking with debian:buster
|
# debian because build with dynamic linking with debian:buster
|
||||||
|
|
Loading…
Reference in a new issue