all repos — infra @ 53d0b39725c374d561a5196aae59cf3dfeb3215d

infrastructure manifests and setup notes

apps/pleroma/Dockerfile (view raw)

 1FROM elixir:1.11.4-alpine
 2
 3ENV UID=911 GID=911 \
 4    MIX_ENV=prod
 5
 6ARG PLEROMA_VER=develop
 7
 8RUN apk -U upgrade \
 9    && apk add --no-cache \
10    build-base \
11    cmake \
12    git \
13    file-dev
14
15RUN addgroup -g ${GID} pleroma \
16    && adduser -h /pleroma -s /bin/sh -D -G pleroma -u ${UID} pleroma
17
18USER pleroma
19WORKDIR /pleroma
20
21RUN git clone -b develop https://git.pleroma.social/pleroma/pleroma.git /pleroma \
22    && git checkout ${PLEROMA_VER}
23
24COPY config/secret.exs /pleroma/config/prod.secret.exs
25
26RUN mix local.rebar --force \
27    && mix local.hex --force \
28    && mix deps.get \
29    && mix compile
30
31CMD ["mix", "phx.server"]