diff --git a/Dockerfile b/Dockerfile index b126ec0..a786480 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM elixir:1.7-alpine +FROM elixir:1.8-alpine ENV UID=911 GID=911 \ MIX_ENV=prod @@ -26,7 +26,6 @@ RUN mix local.rebar --force \ && mix deps.get \ && mix compile -RUN mkdir /pleroma/uploads VOLUME /pleroma/uploads/ CMD ["mix", "phx.server"] diff --git a/README.md b/README.md index ac002cb..8566831 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ docker-compose build docker build -t pleroma . ``` -I prefer the later because it's more verbose. +I prefer the latter because it's more verbose. Setup the database: @@ -136,6 +136,14 @@ Get your web push keys and copy them to `secret.exs`: docker-compose run --rm web mix web_push.gen.keypair ``` +You will need to build the image again, to pick up your updated `secret.exs` file: + +``` +docker-compose build +# or +docker build -t pleroma . +``` + You can now launch your instance: ```sh