Open
Description
Describe your problem
I am following the instructions to build the docker image (for Mac -- apple silicon), but am getting the following when trying to run docker compose ...
:
$ docker compose -f docker/docker-compose.yml up -d
[+] Running 2/12
⠧ redis [⠀⠀⠀⠀⠀⠀⠀] Pulling 1.7s
⠼ f5c6876bb3d7 Pulling fs layer 0.4s
⠼ 4f1566b9ba37 Pulling fs layer 0.4s
⠼ 043157ed2230 Pulling fs layer 0.4s
⠼ 03bb3b0e63a9 Waiting 0.4s
⠼ 2ce98338fcd5 Waiting 0.4s
⠼ 4f4fb700ef54 Waiting 0.4s
⠼ c38fa1e2e43e Waiting 0.4s
✘ es01 Error context canceled 1.7s
✘ minio Error context canceled 1.7s
⠧ ragflow Pulling 1.7s
⠧ mysql Pulling 1.7s
no matching manifest for linux/arm64/v8 in the manifest list entries
I have v0.15.0 checked out. The following diff shows the changes I've made to Dockerfile
and docker/.env
.
$ git diff
diff --git a/Dockerfile b/Dockerfile
index 94365566..a7218f9e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,7 @@ FROM ubuntu:22.04 AS base
USER root
SHELL ["/bin/bash", "-c"]
+ARG ARCH='arm64'
ARG NEED_MIRROR=0
ARG LIGHTEN=0
ENV LIGHTEN=${LIGHTEN}
diff --git a/docker/.env b/docker/.env
index dce767d2..c3b39023 100644
--- a/docker/.env
+++ b/docker/.env
@@ -116,14 +116,14 @@ RAGFLOW_IMAGE=infiniflow/ragflow:v0.15.0-slim
# RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:nightly
# The local time zone.
-TIMEZONE='Asia/Shanghai'
+TIMEZONE='Europe/London'
# Uncomment the following line if you have limited access to huggingface.co:
# HF_ENDPOINT=https://hf-mirror.com
# Optimizations for MacOS
# Uncomment the following line if your OS is MacOS:
-# MACOS=1
+MACOS=1
# The maximum file size for each uploaded file, in bytes.
# You can uncomment this line and update the value if you wish to change the 128M file size limit