Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Librephotos Docker Scaling
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dev Ops
Librephotos Docker Scaling
Commits
5e522d66
Unverified
Commit
5e522d66
authored
2 years ago
by
sickelap
Browse files
Options
Downloads
Patches
Plain Diff
do not install CUDA dependencies
parent
f24a8e13
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+8
-0
8 additions, 0 deletions
Makefile
backend/base/Dockerfile
+6
-1
6 additions, 1 deletion
backend/base/Dockerfile
with
14 additions
and
1 deletion
Makefile
+
8
−
0
View file @
5e522d66
...
...
@@ -5,8 +5,16 @@ REPLACE_NAMES=sed 's/__backend_name__/$(BACKEND_CONT_NAME)/g; s/__frontend_name_
default
:
build
build-dev
:
build-base build-dependencies
build
:
build-backend build-frontend build-proxy
build-base
:
docker build
-t
reallibrephotos/librephotos-base:dev backend/base
--no-cache
build-dependencies
:
docker build
-t
reallibrephotos/librephotos-dependencies:dev backend/dependencies
--no-cache
build-backend
:
docker build
-t
reallibrephotos/librephotos:latest backend
...
...
This diff is collapsed.
Click to expand it.
backend/base/Dockerfile
+
6
−
1
View file @
5e522d66
...
...
@@ -56,7 +56,12 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN if
[
"
$TARGETPLATFORM
"
=
"linux/arm64"
]
;
then
pip3
install
--no-cache-dir
torch torchvision
-f
https://torch.kmtea.eu/whl/stable.html
;
else
pip3
install
--no-cache-dir
torch torchvision
;
fi
RUN
\
if
[
"
$TARGETPLATFORM
"
=
"linux/arm64"
]
;
then
\
pip3
install
--no-cache-dir
torch torchvision
-f
https://torch.kmtea.eu/whl/stable.html
;
\
else
\
pip3
install
--no-cache-dir
torch torchvision
--extra-index-url
https://download.pytorch.org/whl/cpu
;
\
fi
RUN
pip3
install
--no-cache-dir
cmake
==
3.21.2
...
...
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