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
f028c0f1
Commit
f028c0f1
authored
3 years ago
by
Niaz Faridani-Rad
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] Change models download path to our repository
- also changed to slim buster to decrease the download size
parent
7713e6ff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/Dockerfile
+4
-7
4 additions, 7 deletions
backend/Dockerfile
with
4 additions
and
7 deletions
backend/Dockerfile
+
4
−
7
View file @
f028c0f1
FROM
python:3.8
FROM
python:3.8
-slim-buster
# system packages installation
RUN
apt update
&&
apt
install
-y
ffmpeg libimage-exiftool-perl curl nfs-common cifs-utils libopenblas-dev libmagickwand-dev libheif-dev libmagic1 ufraw-batch libboost-all-dev libxrender-dev liblapack-dev git bzip2 cmake build-essential libsm6 libglib2.0-0 libgl1-mesa-glx
--no-install-recommends
RUN
apt update
&&
apt
install
-y
ffmpeg libimage-exiftool-perl curl nfs-common cifs-utils libopenblas-dev libmagickwand-dev libheif-dev libmagic1 ufraw-batch libboost-all-dev libxrender-dev liblapack-dev git bzip2 cmake build-essential libsm6 libglib2.0-0 libgl1-mesa-glx
libpq-dev
--no-install-recommends
# pre trained models download
WORKDIR
/data_models
RUN
mkdir
-p
/data_models/places365/
RUN
mkdir
-p
/data_models/im2txt/
RUN
mkdir
-p
/root/.cache/torch/hub/checkpoints/
RUN
curl
-SL
https://s3.eu-central-1.amazonaws.com/ownphotos-deploy/places365_model.tar.gz |
tar
-zxC
/data_models/places365/
RUN
curl
-SL
https://s3.eu-central-1.amazonaws.com/ownphotos-deploy/im2txt_model.tar.gz |
tar
-zxC
/data_models/im2txt/
RUN
curl
-SL
https://s3.eu-central-1.amazonaws.com/ownphotos-deploy/im2txt_data.tar.gz |
tar
-zxC
/data_models/im2txt/
RUN
curl
-SL
https://github.com/LibrePhotos/librephotos-docker/releases/download/0.1/places365.tar.gz |
tar
-zxC
/data_models/
RUN
curl
-SL
https://github.com/LibrePhotos/librephotos-docker/releases/download/0.1/im2txt.tar.gz |
tar
-zxC
/data_models/
RUN
curl
-SL
https://download.pytorch.org/models/resnet152-b121ed2d.pth
-o
/root/.cache/torch/hub/checkpoints/resnet152-b121ed2d.pth
RUN
pip
install
torch
==
1.8.0+cpu
torchvision
==
0.9.0+cpu
-f
https://download.pytorch.org/whl/torch_stable.html
...
...
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