all repos — infra @ 13d143bca8aeaec2447be2ee2089fdbb3bb01f27

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"]