Skip to content

Commit

Permalink
Separate chown command in Dockerfile. Use tootsuite/mastodon image (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Mar 7, 2018
1 parent cb74c0c commit d7573fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ruby:2.5.0-alpine3.7

LABEL maintainer="https://github.com/tootsuite/mastodon" \
description="A GNU Social-compatible microblogging server"
description="Your self-hosted, globally interconnected microblogging community"

ARG UID=991
ARG GID=991
Expand Down Expand Up @@ -73,7 +73,9 @@ RUN addgroup -g ${GID} mastodon && adduser -h /mastodon -s /bin/sh -D -G mastodo
&& mkdir -p /mastodon/public/system /mastodon/public/assets /mastodon/public/packs \
&& chown -R mastodon:mastodon /mastodon/public

COPY --chown=mastodon:mastodon . /mastodon
COPY . /mastodon

RUN chown -R mastodon:mastodon /mastodon

VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:

web:
build: .
image: gargron/mastodon
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: bundle exec rails s -p 3000 -b '0.0.0.0'
Expand All @@ -52,7 +52,7 @@ services:

streaming:
build: .
image: gargron/mastodon
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: yarn start
Expand All @@ -67,7 +67,7 @@ services:

sidekiq:
build: .
image: gargron/mastodon
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: bundle exec sidekiq -q default -q mailers -q pull -q push
Expand Down

0 comments on commit d7573fe

Please sign in to comment.