pleroma-docker/pleroma.dockerfile

26 lines
607 B
Plaintext
Raw Normal View History

2018-04-07 16:29:55 -04:00
FROM elixir:1.6-alpine
2018-04-08 16:49:07 -04:00
WORKDIR /pleroma
2018-04-07 16:29:55 -04:00
2018-04-08 16:49:07 -04:00
# Prepare system
RUN apk add --no-cache --virtual .build alpine-sdk git rsync
# Perform a clone that can be cached
RUN git clone https://git.pleroma.social/pleroma/pleroma.git .
# Prepare pleroma
2018-04-08 10:15:44 -04:00
ADD ./docker-config.exs /docker-config.exs
2018-04-08 16:49:07 -04:00
ARG PLEROMA_VERSION
RUN \
git checkout $PLEROMA_VERSION && \
git pull --rebase --autostash && \
ln -s /docker-config.exs config/prod.secret.exs && \
ln -s /docker-config.exs config/dev.secret.exs
2018-04-08 10:15:44 -04:00
2018-04-08 16:49:07 -04:00
# Register entrypoint
2018-04-08 10:15:44 -04:00
ADD ./entrypoint.ash /
RUN chmod +x /entrypoint.ash
2018-04-08 16:49:07 -04:00
CMD ["/entrypoint.ash"]
2018-04-07 16:29:55 -04:00
EXPOSE 4000