Files
manyfold/docker/base.dockerfile

32 lines
924 B
Docker

## COMMON BASE ##########################################
FROM ruby:3.4.8-alpine3.23 AS base
WORKDIR /usr/src/app
RUN apk add --no-cache \
tzdata
RUN gem install bundler -v 2.5.23
RUN bundle config set --local deployment 'true'
RUN bundle config set --local without 'development test'
# Scripts for cross-platform architecture detection
COPY --from=tonistiigi/xx / /
RUN apk add --no-cache \
file \
s6-overlay \
gcompat \
jemalloc \
imagemagick \
imagemagick-jpeg \
imagemagick-webp \
imagemagick-heic \
assimp-dev \
mesa-egl
RUN wget "https://github.com/manyfold3d/f3d-alpine/releases/download/v3.4.1-r2/f3d-3.4.1-r2.`xx-info alpine-arch`.apk" -O /tmp/f3d.apk
RUN wget "https://github.com/manyfold3d/f3d-alpine/releases/download/v3.4.1-r1/vtk-9.5.2-r0.`xx-info alpine-arch`.apk" -O /tmp/vtk.apk
RUN apk add --no-cache --allow-untrusted /tmp/f3d.apk /tmp/vtk.apk
RUN rm /tmp/f3d.apk /tmp/vtk.apk