pleroma update

main
Ricard Illa 2022-06-28 10:43:31 +02:00
parent 7898e07eaf
commit 643ea5a0f2
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM elixir:1.11.3-alpine as build FROM elixir:1.13-alpine as build
ENV MIX_ENV=prod ENV MIX_ENV=prod
@ -13,22 +13,25 @@ RUN apk add \
git clone \ git clone \
-b develop \ -b develop \
https://git.pleroma.social/pleroma/pleroma.git \ https://git.pleroma.social/pleroma/pleroma.git \
/pleroma && \ /pleroma
echo "import Mix.Config" > /pleroma/config/prod.secret.exs && \
RUN echo "import Mix.Config" > /pleroma/config/prod.secret.exs && \
cd /pleroma && \ cd /pleroma && \
mix local.hex --force && \ mix local.hex --force && \
mix local.rebar --force && \ mix local.rebar --force && \
mix deps.get --only prod && \ mix deps.get --only prod && \
mix deps.update gun && \
mkdir -p /pleroma/release && \ mkdir -p /pleroma/release && \
mix release --path release mix release --path release
FROM alpine:3.13 FROM alpine:3.16
RUN apk add --update --no-cache \ RUN apk add --update --no-cache \
exiftool \ exiftool \
imagemagick \ imagemagick \
libmagic \ libmagic \
ncurses \ ncurses \
ffmpeg \
postgresql-client && \ postgresql-client && \
addgroup \ addgroup \
--gid 10001 \ --gid 10001 \