Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ ENV RAILS_ENV="production" \
APP_VERSION=${MANYFOLD_VERSION} \
HOME=/config

COPY --from=ruby:3.4.12-alpine3.24 /usr/local /usr/local/

RUN \
apk add --no-cache \
alembic-libs \
Expand All @@ -45,6 +43,7 @@ RUN \
yaml && \
apk add --no-cache --virtual=build-dependencies \
build-base \
crane \
git \
grep \
libffi-dev \
Expand All @@ -71,6 +70,9 @@ RUN \
/tmp/manyfold.tar.gz -C \
/app/www/ --strip-components=1 && \
cd /app/www && \
RUBY_VERSION=$(cat .ruby-version) && \
ALPINE_VERSION=$(cat /etc/os-release | grep "PRETTY_NAME" | sed -E 's|.* v([0-9\.]*).*|\1|') && \
crane export --platform linux/amd64 library/ruby:${RUBY_VERSION}-alpine${ALPINE_VERSION} - | tar -xv -C / usr/local/ && \
npm install -g corepack && \
corepack enable yarn && \
yarn install && \
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ ENV RAILS_ENV="production" \
APP_VERSION=${MANYFOLD_VERSION} \
HOME=/config

COPY --from=ruby:3.4.12-alpine3.24 /usr/local /usr/local/

RUN \
apk add --no-cache \
alembic-libs \
Expand All @@ -45,6 +43,7 @@ RUN \
yaml && \
apk add --no-cache --virtual=build-dependencies \
build-base \
crane \
git \
grep \
libffi-dev \
Expand All @@ -71,6 +70,9 @@ RUN \
/tmp/manyfold.tar.gz -C \
/app/www/ --strip-components=1 && \
cd /app/www && \
RUBY_VERSION=$(cat .ruby-version) && \
ALPINE_VERSION=$(cat /etc/os-release | grep "PRETTY_NAME" | sed -E 's|.* v([0-9\.]*).*|\1|') && \
crane export --platform linux/arm64 library/ruby:${RUBY_VERSION}-alpine${ALPINE_VERSION} - | tar -xv -C / usr/local/ && \
npm install -g corepack && \
corepack enable yarn && \
yarn install && \
Expand Down