Hi all,

Unfortunately the official Lemmy and Lemmy UI docker images are currently available for AMD64 only for 0.18.0 +. I’m running an ARM64 system and am looking to use the latest 0.18.1 release candidates, however I can’t find any pre-build docker images.

I’ve attempted to build it, however the dockerfile uses clux/muslrust which is AMD64 only.

Does anybody know of any ARM64 alternatives to clux/muslrust that I can use instead that I can just swap it for?

Here is the dockerfile for those interested: https://github.com/LemmyNet/lemmy/blob/main/docker/Dockerfile

Edit: Thanks to some advice in this thread, I was able to build the latest builds of Lemmy and Lemmy UI. If you want to use them you can here:
https://hub.docker.com/r/berrrnard/lemmy/tags
https://hub.docker.com/r/berrrnard/lemmy-ui/tags

I eat words
link
fedilink
English
81Y

hi,

i am using this

root@instance-20211112-2005:/opt/lemmy/lemmy/docker# cat Dockerfile.arm64
FROM rust:1.70.0 as builder
WORKDIR /app

COPY . .

# This can be set to release using --build-arg
ARG RUST_RELEASE_MODE="debug"

COPY . .

# Build the project

# Debug mode build
RUN --mount=type=cache,target=/app/target \
    if [ "$RUST_RELEASE_MODE" = "debug" ] ; then \
      echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs" \
      && cargo build \
      && cp ./target/$RUST_RELEASE_MODE/lemmy_server /app/lemmy_server; \
    fi

# Release mode build
RUN \
    if [ "$RUST_RELEASE_MODE" = "release" ] ; then \
      echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs" \
      && cargo build --release \
      && cp ./target/$RUST_RELEASE_MODE/lemmy_server /app/lemmy_server; \
    fi

FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y libpq5 ca-certificates && rm -rf /var/lib/apt/lists/*

COPY --from=builder /app/lemmy_server /app/lemmy

CMD ["/app/lemmy"]

Also Lemmy developers are working on cross build - so it should be available in the future I hope :)

HorseFD
creator
link
fedilink
English
11Y

Also Lemmy developers are working on cross build - so it should be available in the future I hope :)

Great! That will make things so much easier. And thanks for the dockerfile, I will give this a try.

https://github.com/masquernya/lemmy-arm64

Check out this repo I used it to build Lemmy docker images on ARM64

HorseFD
creator
link
fedilink
English
11Y

Very useful, thanks

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 127 users / day
  • 422 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog