]> cat aescling's git repositories - mastodon.git/blob - Dockerfile
Merge branch 'master' into patch-1
[mastodon.git] / Dockerfile
1 FROM ruby:2.3.1-alpine
2
3 LABEL maintainer="https://github.com/tootsuite/mastodon" \
4 description="A GNU Social-compatible microblogging server"
5
6 ENV RAILS_ENV=production \
7 NODE_ENV=production
8
9 EXPOSE 3000 4000
10
11 WORKDIR /mastodon
12
13 COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
14
15 RUN BUILD_DEPS=" \
16 postgresql-dev \
17 libxml2-dev \
18 libxslt-dev \
19 build-base" \
20 && apk -U upgrade && apk add \
21 $BUILD_DEPS \
22 nodejs \
23 libpq \
24 libxml2 \
25 libxslt \
26 ffmpeg \
27 file \
28 imagemagick \
29 && npm install -g npm@3 && npm install -g yarn \
30 && bundle install --deployment --without test development \
31 && yarn \
32 && yarn cache clean \
33 && npm -g cache clean \
34 && apk del $BUILD_DEPS \
35 && rm -rf /tmp/* /var/cache/apk/*
36
37 COPY . /mastodon
38
39 VOLUME /mastodon/public/system /mastodon/public/assets
This page took 0.072491 seconds and 5 git commands to generate.