I eat words

Linuxoid

Matrix - @saint:group.lt

  • 5 Posts
  • 1 Comment
Joined 3 years ago
cake
Cake day: December 3rd, 2021

help-circle

  • yay! thank you all!

    i have made a not-so-quick-but-dirty Dockerfile to build on arm64

    FROM rust:1.70.0
    WORKDIR /app
    
    COPY . .
    
    RUN echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"
    RUN cargo build --release
    
    RUN apt update
    RUN apt -y install libpq5
    RUN cp /app/target/release/lemmy_server /app/lemmy
    
    CMD ["/app/lemmy"]
    

    later I am planning to improve it a bit, to make the image smaller if i can