mirror of
https://github.com/correl/docker-pleroma.git
synced 2024-12-27 03:00:09 +00:00
Merge pull request #10 from angristan/update-elixir
Update to Elixir 1.9
This commit is contained in:
commit
0bc43b2de3
2 changed files with 9 additions and 7 deletions
|
@ -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}
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue