Merge pull request #10 from angristan/update-elixir

Update to Elixir 1.9
This commit is contained in:
Stanislas 2020-07-24 12:16:18 +02:00 committed by GitHub
commit 0bc43b2de3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View file

@ -1,4 +1,4 @@
FROM elixir:1.8-alpine FROM elixir:1.9-alpine
ENV UID=911 GID=911 \ ENV UID=911 GID=911 \
MIX_ENV=prod MIX_ENV=prod
@ -14,7 +14,7 @@ RUN addgroup -g ${GID} pleroma \
&& adduser -h /pleroma -s /bin/sh -D -G pleroma -u ${UID} pleroma && adduser -h /pleroma -s /bin/sh -D -G pleroma -u ${UID} pleroma
USER pleroma USER pleroma
WORKDIR pleroma WORKDIR /pleroma
RUN git clone -b develop https://git.pleroma.social/pleroma/pleroma.git /pleroma \ RUN git clone -b develop https://git.pleroma.social/pleroma/pleroma.git /pleroma \
&& git checkout ${PLEROMA_VER} && git checkout ${PLEROMA_VER}

View file

@ -8,7 +8,7 @@ Its main advantages are its lightness and speed.
![Pleroma](https://i.imgur.com/VftiTlR.png) ![Pleroma](https://i.imgur.com/VftiTlR.png)
*Pleromians trying to understand the memes* _Pleromians trying to understand the memes_
## Features ## Features
@ -54,7 +54,7 @@ services:
container_name: pleroma_web container_name: pleroma_web
restart: always restart: always
ports: ports:
- "127.0.0.1:4000:4000" - '127.0.0.1:4000:4000'
volumes: volumes:
- ./uploads:/pleroma/uploads - ./uploads:/pleroma/uploads
depends_on: 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: If you want to run a specific commit, you can use the `PLEROMA_VER` variable:
```sh ```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)) `a9203ab3` being the hash of the commit. (They're [here](https://git.pleroma.social/pleroma/pleroma/commits/develop))