mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 21:26:52 +00:00
Merge pull request #1088 from Wonderfall/master
Add metadata to Dockerfile
This commit is contained in:
commit
cd77c75d6c
|
@ -1,8 +1,13 @@
|
||||||
FROM ruby:2.3.1-alpine
|
FROM ruby:2.3.1-alpine
|
||||||
|
|
||||||
|
LABEL maintainer="https://github.com/tootsuite/mastodon" \
|
||||||
|
description="A GNU Social-compatible microblogging server"
|
||||||
|
|
||||||
ENV RAILS_ENV=production \
|
ENV RAILS_ENV=production \
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
|
||||||
|
EXPOSE 3000 4000
|
||||||
|
|
||||||
WORKDIR /mastodon
|
WORKDIR /mastodon
|
||||||
|
|
||||||
COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
|
COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
|
||||||
|
|
|
@ -65,6 +65,8 @@ Consult the example configuration file, `.env.production.sample` for the full li
|
||||||
|
|
||||||
## Running with Docker and Docker-Compose
|
## Running with Docker and Docker-Compose
|
||||||
|
|
||||||
|
[![](https://images.microbadger.com/badges/version/gargron/mastodon.svg)](https://microbadger.com/images/gargron/mastodon "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/image/gargron/mastodon.svg)](https://microbadger.com/images/gargron/mastodon "Get your own image badge on microbadger.com")
|
||||||
|
|
||||||
The project now includes a `Dockerfile` and a `docker-compose.yml`. You need to turn `.env.production.sample` into `.env.production` with all the variables set before you can:
|
The project now includes a `Dockerfile` and a `docker-compose.yml`. You need to turn `.env.production.sample` into `.env.production` with all the variables set before you can:
|
||||||
|
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
|
Loading…
Reference in a new issue