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
6bbf9812
Unverified
Commit
6bbf9812
authored
3 years ago
by
Niaz Faridani-Rad
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change image to base image
parent
d12f18b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/dependencies/Dockerfile
+1
-80
1 addition, 80 deletions
backend/dependencies/Dockerfile
with
1 addition
and
80 deletions
backend/dependencies/Dockerfile
+
1
−
80
View file @
6bbf9812
FROM
ubuntu:20.04
# system packages installation
ARG
TARGETPLATFORM
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
\
build-essential
\
bzip2
\
curl
\
ffmpeg
\
git
\
libboost-all-dev
\
libcfitsio-dev
\
libexif-dev \
libexpat-dev \
libexpat1-dev \
libgif-dev \
libgl1-mesa-glx \
libglib2.0-dev \
libgsf-1-dev \
libheif-dev \
libimage-exiftool-perl \
libimagequant-dev \
libjpeg-dev \
liblapack-dev \
liblcms2-dev \
libmagic1 \
libopenblas-dev \
libopenexr-dev \
liborc-dev \
libpng-dev \
libpq-dev \
libraw-dev \
librsvg2-dev \
libsm6 \
libtiff5-dev \
libtool \
libtool-bin \
libwebp-dev \
libxrender-dev \
pkg-config \
python3-dev \
python3-pip \
swig \
unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN if
[
"
$TARGETPLATFORM
"
=
"linux/arm64"
]
;
then
pip3
install
torch torchvision
-f
https://torch.kmtea.eu/whl/stable.html
;
else
pip3
install
torch torchvision
;
fi
RUN
pip3
install
pyvips
==
2.1.15
cmake
==
3.21.2
#Build and install libraw
WORKDIR
/tmp/builds
RUN
git clone https://github.com/LibRaw/LibRaw
&&
\
cd
LibRaw
&&
\
autoreconf --install && \
./configure && \
make && \
make install
#Build and install imagemagick
WORKDIR
/tmp/builds
ARG
IMAGEMAGICK_VERSION=7.1.0-5
RUN
curl
-SL
https://www.imagemagick.org/download/releases/ImageMagick-
${
IMAGEMAGICK_VERSION
}
.tar.gz |
tar
-zx
&&
\
cd
ImageMagick-
${
IMAGEMAGICK_VERSION
}
&&
\
./configure
--with-modules
&&
\
make
install
&&
\
ldconfig /usr/local/lib
# Build and install libvips
WORKDIR
/tmp/builds
ARG
VIPSVERSION=8.11.0
RUN
curl
-SL
https://github.com/libvips/libvips/releases/download/v
${
VIPSVERSION
}
/vips-
${
VIPSVERSION
}
.tar.gz |
tar
-xz
\
&& cd vips-${VIPSVERSION} \
&& ./configure \
&& make V=0 \
&& make install \
&& ldconfig
FROM
reallibrephotos/librephotos-base:dev
# Build and install dlib
WORKDIR
/tmp/builds
...
...
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