Browse Source

Update 'deploy/Dockerfile'

master
Maff 6 months ago
parent
commit
7434bb45ad
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      deploy/Dockerfile

+ 10
- 1
deploy/Dockerfile View File

@@ -3,5 +3,14 @@ FROM tootsuite/mastodon:v$MASTODON_VERSION

COPY queer.party.patch /
COPY pressstart2p /mastodon/app/javascript/fonts/pressstart2p
RUN cd /mastodon && patch -p1 < /queer.party.patch
USER root
#Seems like in v2.8.0 the official docker image no longer includes `patch`.
RUN test -x /usr/bin/patch || sh -c 'mkdir -p /var/lib/apt/lists/partial && \
mkdir -p /var/cache/apt/archives/partial && \
apt update && \
apt install -y patch && \
apt-get clean -y && \
rm -rf /var/cache/apt/archives /var/lib/apt/lists'
USER mastodon
RUN cd /mastodon && /usr/bin/patch -p1 < /queer.party.patch
RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder bundle exec rails assets:precompile

Loading…
Cancel
Save