mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 03:32:18 -05:00
35 lines
953 B
Docker
35 lines
953 B
Docker
## COMMON BASE ##########################################
|
|
|
|
FROM ruby:3.4.9-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'
|
|
|
|
RUN apk add --no-cache \
|
|
file \
|
|
s6-overlay \
|
|
gcompat \
|
|
jemalloc \
|
|
imagemagick \
|
|
imagemagick-jpeg \
|
|
imagemagick-webp \
|
|
imagemagick-heic \
|
|
assimp-dev \
|
|
mesa-egl
|
|
|
|
# Install latest VTK and OpenCascade from Alpine edge
|
|
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community vtk opencascade
|
|
|
|
# Scripts for cross-platform architecture detection
|
|
COPY --from=tonistiigi/xx / /
|
|
|
|
# Install custom f3d package
|
|
RUN wget "https://github.com/manyfold3d/f3d-alpine/releases/download/v3.5.0-r0-1/f3d-3.5.0-r0.`xx-info alpine-arch`.apk" -O /tmp/f3d.apk
|
|
RUN apk add --no-cache --allow-untrusted /tmp/f3d.apk
|
|
RUN rm /tmp/f3d.apk
|