mirror of
https://github.com/linuxserver/docker-gimp.git
synced 2026-01-09 07:31:15 +08:00
70 lines
1.7 KiB
Docker
70 lines
1.7 KiB
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM ghcr.io/linuxserver/baseimage-debian:arm64v8-trixie AS resynth
|
|
|
|
RUN \
|
|
echo "**** install build deps ****" && \
|
|
apt-get update && \
|
|
apt-get install -y \
|
|
build-essential \
|
|
libgimp-3.0-dev \
|
|
meson
|
|
|
|
RUN \
|
|
echo "**** ingest and build resynthesizer ****" && \
|
|
mkdir /buildout && \
|
|
RESYNTH_RELEASE=$(curl -sX GET "https://api.github.com/repos/bootchk/resynthesizer/releases/latest" \
|
|
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
|
curl -o \
|
|
/tmp/resynth.tar.gz -L \
|
|
"https://github.com/bootchk/resynthesizer/archive/refs/tags/${RESYNTH_RELEASE}.tar.gz" && \
|
|
cd /tmp && \
|
|
tar -xf resynth.tar.gz && \
|
|
cd resynthesizer-* && \
|
|
meson setup resynthesizerBuild && \
|
|
cd resynthesizerBuild && \
|
|
meson compile --verbose -j $(nproc) && \
|
|
DESTDIR=/buildout meson install && \
|
|
mv /buildout/usr/local/lib /buildout/usr && \
|
|
rm -Rf /buildout/usr/local
|
|
|
|
# runtime stage
|
|
FROM ghcr.io/linuxserver/baseimage-selkies:arm64v8-debiantrixie
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG GIMP_VERSION
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="thelamer"
|
|
|
|
# title
|
|
ENV TITLE=GIMP \
|
|
NO_FULL=true
|
|
|
|
RUN \
|
|
echo "**** add icon ****" && \
|
|
curl -o \
|
|
/usr/share/selkies/www/icon.png \
|
|
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/gimp-logo.png && \
|
|
echo "**** install packages ****" && \
|
|
apt-get update && \
|
|
apt-get install -y \
|
|
gimp \
|
|
libgimp-3.0 && \
|
|
echo "**** cleanup ****" && \
|
|
apt-get autoclean && \
|
|
rm -rf \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/* \
|
|
/tmp/*
|
|
|
|
# add local files
|
|
COPY --from=resynth /buildout /
|
|
COPY /root /
|
|
|
|
# ports and volumes
|
|
EXPOSE 3000
|
|
|
|
VOLUME /config
|