mirror of
https://git.cloudron.io/cloudron/mastodon-app.git
synced 2025-03-28 01:25:28 +00:00
Update base image to 5.0.0
This commit is contained in:
parent
b506ee70d6
commit
a951ad36f2
1 changed files with 3 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4 as base
|
||||
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c AS base
|
||||
|
||||
FROM base AS build
|
||||
|
||||
|
@ -57,15 +57,12 @@ ENV RBENV_ROOT /home/cloudron/rbenv
|
|||
RUN mkdir -p "$(rbenv root)"/plugins/ruby-build && curl -LSs "https://github.com/rbenv/ruby-build/archive/refs/tags/v20241007.tar.gz" | tar -xz -C "$(rbenv root)"/plugins/ruby-build --strip-components 1 -f -
|
||||
|
||||
# install specific ruby version (https://github.com/mastodon/mastodon/blob/main/Dockerfile)
|
||||
ARG RUBY_VERSION=3.3.5
|
||||
ARG RUBY_VERSION=3.4.2
|
||||
RUN rbenv install ${RUBY_VERSION}
|
||||
ENV PATH ${RBENV_ROOT}/versions/${RUBY_VERSION}/bin:$PATH
|
||||
RUN gem install --no-document bundler
|
||||
|
||||
ARG NODE_VERSION=20.18.0
|
||||
RUN mkdir -p /usr/local/node-${NODE_VERSION} && \
|
||||
curl -L https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz | tar zxf - --strip-components 1 -C /usr/local/node-${NODE_VERSION}
|
||||
ENV PATH /usr/local/node-${NODE_VERSION}/bin:$PATH
|
||||
RUN node -v | grep -q "v22" || (echo "Node 22 is required" || exit 1)
|
||||
|
||||
RUN mkdir -p /app/code /app/pkg
|
||||
WORKDIR /app/code
|
||||
|
|
Loading…
Reference in a new issue