mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 09:51:24 +00:00
Revert "Move libvips build to dedicated layer"
This reverts commit b92ceeb91c
.
This commit is contained in:
parent
e7db00bd9b
commit
bcad8c59c1
44
Dockerfile
44
Dockerfile
|
@ -159,6 +159,25 @@ RUN \
|
||||||
libwebp-dev \
|
libwebp-dev \
|
||||||
;
|
;
|
||||||
|
|
||||||
|
# libvips version to compile, change with [--build-arg VIPS_VERSION="8.15.2"]
|
||||||
|
# renovate: datasource=github-releases depName=libvips packageName=libvips/libvips
|
||||||
|
ARG VIPS_VERSION=8.15.2
|
||||||
|
# libvips download URL, change with [--build-arg VIPS_URL="https://github.com/libvips/libvips/releases/download"]
|
||||||
|
ARG VIPS_URL=https://github.com/libvips/libvips/releases/download
|
||||||
|
|
||||||
|
WORKDIR /usr/local/src
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
curl -sSL -o vips-${VIPS_VERSION}.tar.xz ${VIPS_URL}/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.xz; \
|
||||||
|
tar xf vips-${VIPS_VERSION}.tar.xz; \
|
||||||
|
cd vips-${VIPS_VERSION}; \
|
||||||
|
meson setup build --libdir=lib -Ddeprecated=false -Dintrospection=disabled -Dmodules=disabled -Dexamples=false; \
|
||||||
|
cd build; \
|
||||||
|
ninja; \
|
||||||
|
ninja install;
|
||||||
|
|
||||||
|
WORKDIR /opt/mastodon
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Configure Corepack
|
# Configure Corepack
|
||||||
rm /usr/local/bin/yarn*; \
|
rm /usr/local/bin/yarn*; \
|
||||||
|
@ -187,25 +206,6 @@ RUN \
|
||||||
# Download and install required Gems
|
# Download and install required Gems
|
||||||
bundle install -j"$(nproc)";
|
bundle install -j"$(nproc)";
|
||||||
|
|
||||||
FROM build as libvips
|
|
||||||
|
|
||||||
# libvips version to compile, change with [--build-arg VIPS_VERSION="8.15.2"]
|
|
||||||
# renovate: datasource=github-releases depName=libvips packageName=libvips/libvips
|
|
||||||
ARG VIPS_VERSION=8.15.2
|
|
||||||
# libvips download URL, change with [--build-arg VIPS_URL="https://github.com/libvips/libvips/releases/download"]
|
|
||||||
ARG VIPS_URL=https://github.com/libvips/libvips/releases/download
|
|
||||||
|
|
||||||
WORKDIR /usr/local/src
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
curl -sSL -o vips-${VIPS_VERSION}.tar.xz ${VIPS_URL}/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.xz; \
|
|
||||||
tar xf vips-${VIPS_VERSION}.tar.xz; \
|
|
||||||
cd vips-${VIPS_VERSION}; \
|
|
||||||
meson setup build --libdir=lib -Ddeprecated=false -Dintrospection=disabled -Dmodules=disabled -Dexamples=false; \
|
|
||||||
cd build; \
|
|
||||||
ninja; \
|
|
||||||
ninja install;
|
|
||||||
|
|
||||||
# Create temporary node specific build layer from build layer
|
# Create temporary node specific build layer from build layer
|
||||||
FROM build as yarn
|
FROM build as yarn
|
||||||
|
|
||||||
|
@ -294,9 +294,9 @@ COPY --from=precompiler /opt/mastodon/public/assets /opt/mastodon/public/assets
|
||||||
# Copy bundler components to layer
|
# Copy bundler components to layer
|
||||||
COPY --from=bundler /usr/local/bundle/ /usr/local/bundle/
|
COPY --from=bundler /usr/local/bundle/ /usr/local/bundle/
|
||||||
# Copy libvips components to layer
|
# Copy libvips components to layer
|
||||||
COPY --from=libvips /usr/local/bin/vips* /usr/local/bin
|
COPY --from=build /usr/local/bin/vips* /usr/local/bin
|
||||||
COPY --from=libvips /usr/local/lib/libvips* /usr/local/lib
|
COPY --from=build /usr/local/lib/libvips* /usr/local/lib
|
||||||
COPY --from=libvips /usr/local/lib/pkgconfig/vips* /usr/local/lib/pkgconfig
|
COPY --from=build /usr/local/lib/pkgconfig/vips* /usr/local/lib/pkgconfig
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Symlink libvips components
|
# Symlink libvips components
|
||||||
|
|
Loading…
Reference in New Issue
Block a user