Skip to content

Commit

Permalink
multi-arch docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Sep 25, 2024
1 parent 7bb28ca commit c67ead5
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 516 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.scratch
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ USER root
WORKDIR /ragflow

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt update && apt install -y nodejs npm && \
apt update && apt install -y nodejs npm cargo && \
rm -rf /var/lib/apt/lists/*

COPY web web
Expand All @@ -42,7 +42,7 @@ RUN cd web && npm i --force && npm run build
# install dependencies from poetry.lock file
COPY pyproject.toml poetry.toml poetry.lock ./
RUN --mount=type=cache,target=/root/.cache/pypoetry,sharing=locked \
/root/.local/bin/poetry install --sync --no-cache --no-root
/root/.local/bin/poetry install --sync --no-root

# production stage
FROM base AS production
Expand Down
3 changes: 2 additions & 1 deletion docker/docker-compose-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ services:
restart: always

mysql:
image: mysql:5.7.18
# mysql:5.7 linux/arm64 image is unavailable.
image: mysql:8.0.39
container_name: ragflow-mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
Expand Down
Loading

0 comments on commit c67ead5

Please sign in to comment.