mirror of
https://git.cloudron.io/cloudron/mastodon-app.git
synced 2025-01-03 19:28:41 +00:00
We have to use modern yarn
This commit is contained in:
parent
ae66044c21
commit
fdda17dc83
1 changed files with 5 additions and 7 deletions
12
Dockerfile
12
Dockerfile
|
@ -32,6 +32,9 @@ ENV PATH /usr/local/node-${NODE_VERSION}/bin:$PATH
|
||||||
ENV RAILS_ENV production
|
ENV RAILS_ENV production
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
|
# will install yarn
|
||||||
|
RUN corepack enable
|
||||||
|
|
||||||
# renovate: datasource=github-releases depName=tootsuite/mastodon versioning=semver extractVersion=^v(?<version>.+)$
|
# renovate: datasource=github-releases depName=tootsuite/mastodon versioning=semver extractVersion=^v(?<version>.+)$
|
||||||
ARG MASTODON_VERSION=4.3.0
|
ARG MASTODON_VERSION=4.3.0
|
||||||
|
|
||||||
|
@ -41,13 +44,8 @@ RUN curl -L https://github.com/tootsuite/mastodon/archive/v${MASTODON_VERSION}.t
|
||||||
bundle config --local set silence_root_warning true && \
|
bundle config --local set silence_root_warning true && \
|
||||||
bundle install && \
|
bundle install && \
|
||||||
bundle clean --force && \
|
bundle clean --force && \
|
||||||
rm -rf ~/.bundle /usr/local/bundle/cache && \
|
rm -rf ~/.bundle /usr/local/bundle/cache
|
||||||
yarn install --pure-lockfile
|
RUN yarn install
|
||||||
|
|
||||||
# secret keys are not built into assets, so precompiling is safe to do here
|
|
||||||
# (these variables are required by rake though)
|
|
||||||
RUN SECRET_KEY_BASE=insecure.secret_key_base OTP_SECRET=insecure.otp_secret \
|
|
||||||
bundle exec rake assets:precompile
|
|
||||||
|
|
||||||
# https://github.com/rubygems/bundler/issues/5245 means that bundle exec writes to Gemfile.lock
|
# https://github.com/rubygems/bundler/issues/5245 means that bundle exec writes to Gemfile.lock
|
||||||
RUN ln -fs /run/mastodon/bullet.log /app/code/log/bullet.log && \
|
RUN ln -fs /run/mastodon/bullet.log /app/code/log/bullet.log && \
|
||||||
|
|
Loading…
Reference in a new issue