remove xdiff/diffy/rb-bsdiff

This commit is contained in:
Dylan Knutson
2025-07-21 21:19:28 +00:00
parent 538d3919d9
commit fd61616c03
73 changed files with 6 additions and 10874 deletions

View File

@@ -1,23 +1,3 @@
FROM ruby:3.2.6 AS native-gems
RUN rm -f /etc/apt/apt.conf.d/docker-clean; \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y \
cmake
WORKDIR /usr/src/app
RUN gem install bundler -v '2.6.2'
COPY gems gems
WORKDIR /usr/src/app/gems/xdiff-rb
RUN bundle install
RUN rake compile
WORKDIR /usr/src/app/gems/rb-bsdiff
RUN bundle install
RUN rake compile
# Primary image
FROM ruby:3.2.6
USER root
@@ -64,9 +44,6 @@ RUN \
pdftohtml \
libreoffice
COPY --from=native-gems /usr/src/app/gems/xdiff-rb /gems/xdiff-rb
COPY --from=native-gems /usr/src/app/gems/rb-bsdiff /gems/rb-bsdiff
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config