commit e2858531ac53afb73c30f204f7b7e6efecf71c01 Author: Paul Date: Sat Jan 2 04:22:38 2021 +0100 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b347ad5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,34 @@ +FROM elixir:1.11.2-alpine + +ENV UID=2000 GID=2000 \ + MIX_ENV=prod + +ARG PLEROMA_VER=develop + +RUN apk -U upgrade \ + && apk add --no-cache \ + build-base \ + cmake \ + git \ + file-dev + +RUN addgroup -g ${GID} pleroma \ + && adduser -h /pleroma -s /bin/sh -D -G pleroma -u ${UID} pleroma + +USER pleroma +WORKDIR /pleroma + +RUN git clone -b develop https://git.pleroma.social/pleroma/pleroma.git /pleroma \ + && git checkout ${PLEROMA_VER} + +#COPY config/secret.exs /pleroma/config/prod.secret.exs + +RUN mix local.rebar --force \ + && mix local.hex --force \ + && mix deps.get \ + && mix compile + +VOLUME /pleroma/uploads/ + +CMD ["mix", "phx.server"] +