Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ARG MODELRELAY_VERSION=1.16.0
ARG OLLAMA_VERSION=0.21.0
ARG NODE_VERSION=24
ARG CODE_SERVER_VERSION=4.117.0
ARG MNEMON_VERSION=0.1.3


# Use the official Ollama image to get the binary
FROM ollama/ollama:${OLLAMA_VERSION} AS ollama-bin
Expand Down Expand Up @@ -64,4 +66,21 @@ COPY default.conf /defaults/default.conf
# Switch default shell to zsh for root and abc
RUN usermod -s $(which zsh) root; usermod -s $(which zsh) abc

# Install mnemon
ARG MNEMON_VERSION
ARG BUILDARCH
RUN echo "Building for architecture: $BUILDARCH"
RUN set -eux; \
MNEMON_ARCH="${MNEMON_ARCH:-${TARGETARCH:-amd64}}"; \
case "${MNEMON_ARCH}" in \
amd64|x86_64) MNEMON_ARCH=amd64 ;; \
arm64|aarch64) MNEMON_ARCH=arm64 ;; \
*) echo "Unsupported MNEMON_ARCH: ${MNEMON_ARCH}" >&2; exit 1 ;; \
esac; \
curl -sL "https://github.com/mnemon-dev/mnemon/releases/download/v${MNEMON_VERSION}/mnemon_${MNEMON_VERSION}_linux_${MNEMON_ARCH}.tar.gz" -o /tmp/mnemon.tar.gz && \
tar xzf /tmp/mnemon.tar.gz -C /tmp && \
cp /tmp/mnemon /usr/local/bin/mnemon && \
chmod +x /usr/local/bin/mnemon && \
rm -rf /tmp/mnemon.tar.gz /tmp/mnemon

EXPOSE 18789 20128 7352 8888
Loading