Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Anything Llm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
Mintplex Labs
Anything Llm
Commits
2574334f
Commit
2574334f
authored
8 months ago
by
timothycarambat
Browse files
Options
Downloads
Patches
Plain Diff
patch dockerfile for arm64 due to bad chromium location
parent
f1552965
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/Dockerfile
+11
-18
11 additions, 18 deletions
docker/Dockerfile
with
11 additions
and
18 deletions
docker/Dockerfile
+
11
−
18
View file @
2574334f
...
@@ -60,7 +60,7 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
...
@@ -60,7 +60,7 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV
CHROME_PATH=/app/chrome-linux/chrome
ENV
CHROME_PATH=/app/chrome-linux/chrome
ENV
PUPPETEER_EXECUTABLE_PATH=/app/chrome-linux/chrome
ENV
PUPPETEER_EXECUTABLE_PATH=/app/chrome-linux/chrome
RUN
echo
"Done running arm64 specific installtion steps"
RUN
echo
"Done running arm64 specific install
a
tion steps"
#############################################
#############################################
...
@@ -129,12 +129,19 @@ RUN yarn build && \
...
@@ -129,12 +129,19 @@ RUN yarn build && \
WORKDIR
/app
WORKDIR
/app
# Install server layer & build node-llama-cpp
# Install server layer & build node-llama-cpp
FROM
build
AS
server-build
# Also pull and build collector deps (chromium issues prevent bad bindings)
FROM
build
AS
backend-build
COPY
./server /app/server/
COPY
./server /app/server/
WORKDIR
/app/server
WORKDIR
/app/server
RUN
yarn
install
--production
--network-timeout
100000
&&
yarn cache clean
RUN
yarn
install
--production
--network-timeout
100000
&&
yarn cache clean
WORKDIR
/app
WORKDIR
/app
# Install collector dependencies
COPY
./collector/ ./collector/
WORKDIR
/app/collector
ENV
PUPPETEER_DOWNLOAD_BASE_URL=https://storage.googleapis.com/chrome-for-testing-public
RUN
yarn
install
--production
--network-timeout
100000
&&
yarn cache clean
# Compile Llama.cpp bindings for node-llama-cpp for this operating system.
# Compile Llama.cpp bindings for node-llama-cpp for this operating system.
# Creates appropriate bindings for the OS
# Creates appropriate bindings for the OS
USER
root
USER
root
...
@@ -143,24 +150,10 @@ RUN npx --no node-llama-cpp download
...
@@ -143,24 +150,10 @@ RUN npx --no node-llama-cpp download
WORKDIR
/app
WORKDIR
/app
USER
anythingllm
USER
anythingllm
# Build collector deps (this also downloads proper chrome for collector in /app/.cache so that needs to be
# Since we are building from backend-build we just need to move built frontend into server/public
# transferred properly in prod-build stage.
FROM
backend-build
AS
production-build
FROM
build
AS
collector-build
COPY
./collector /app/collector
WORKDIR
/app/collector
ENV
PUPPETEER_DOWNLOAD_BASE_URL=https://storage.googleapis.com/chrome-for-testing-public
RUN
yarn
install
--production
--network-timeout
100000
&&
yarn cache clean
WORKDIR
/app
FROM
build
AS
production-build
WORKDIR
/app
WORKDIR
/app
# Copy the server
COPY
--chown=anythingllm:anythingllm --from=server-build /app/server/ /app/server/
# Copy built static frontend files to the server public directory
COPY
--chown=anythingllm:anythingllm --from=frontend-build /app/frontend/dist /app/server/public
COPY
--chown=anythingllm:anythingllm --from=frontend-build /app/frontend/dist /app/server/public
# Copy the collector
COPY
--chown=anythingllm:anythingllm --from=collector-build /app/collector/ /app/collector/
COPY
--chown=anythingllm:anythingllm --from=collector-build /app/.cache/puppeteer /app/.cache/puppeteer
# No longer needed? (deprecated)
# No longer needed? (deprecated)
# WORKDIR /app/server
# WORKDIR /app/server
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment