From 08086a2a0c48f04e8e9dfb6c3b5f4a76a54ce183 Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Fri, 24 Jul 2020 12:15:05 +0200 Subject: [PATCH] Update Elixir to 1.9 Fix #9 --- Dockerfile | 8 ++++---- README.md | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a786480..fbdd623 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM elixir:1.8-alpine +FROM elixir:1.9-alpine ENV UID=911 GID=911 \ MIX_ENV=prod @@ -7,14 +7,14 @@ ARG PLEROMA_VER=develop RUN apk -U upgrade \ && apk add --no-cache \ - build-base \ - git + build-base \ + git RUN addgroup -g ${GID} pleroma \ && adduser -h /pleroma -s /bin/sh -D -G pleroma -u ${UID} pleroma USER pleroma -WORKDIR pleroma +WORKDIR /pleroma RUN git clone -b develop https://git.pleroma.social/pleroma/pleroma.git /pleroma \ && git checkout ${PLEROMA_VER} diff --git a/README.md b/README.md index 9d8c356..203e61b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Its main advantages are its lightness and speed. ![Pleroma](https://i.imgur.com/VftiTlR.png) -*Pleromians trying to understand the memes* +_Pleromians trying to understand the memes_ ## Features @@ -54,7 +54,7 @@ services: container_name: pleroma_web restart: always ports: - - "127.0.0.1:4000:4000" + - '127.0.0.1:4000:4000' volumes: - ./uploads:/pleroma/uploads depends_on: @@ -177,7 +177,9 @@ docker-compose up -d # recreate the containers if needed If you want to run a specific commit, you can use the `PLEROMA_VER` variable: ```sh -docker build -t pleroma . --build-arg PLEROMA_VER=a9203ab3 +docker build -t pleroma . --build-arg PLEROMA_VER=develop # a branch +docker build -t pleroma . --build-arg PLEROMA_VER=a9203ab3 # a commit +docker build -t pleroma . --build-arg PLEROMA_VER=v2.0.7 # a version ``` `a9203ab3` being the hash of the commit. (They're [here](https://git.pleroma.social/pleroma/pleroma/commits/develop))