Newer
Older
LABEL maintainer="https://github.com/tootsuite/mastodon" \
description="A GNU Social-compatible microblogging server"
WORKDIR /mastodon
RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
&& BUILD_DEPS=" \
build-base" \
&& apk -U upgrade && apk add \
$BUILD_DEPS \
&& update-ca-certificates \
COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
RUN bundle install --deployment --without test development \
&& yarn --ignore-optional --pure-lockfile
VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs