A lightweight distributed microblogging site
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
663 B

FROM elixir:1.11.2-alpine
ENV UID=2000 GID=2000 \
RUN apk -U upgrade \
&& apk add --no-cache \
build-base \
cmake \
git \
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"]