pleroma-docker/pleroma.dockerfile

26 lines
607 B
Plaintext
Raw Normal View History

2018-04-07 20:29:55 +00:00
FROM elixir:1.6-alpine
2018-04-08 20:49:07 +00:00
WORKDIR /pleroma
2018-04-07 20:29:55 +00:00
2018-04-08 20:49:07 +00: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 14:15:44 +00:00
ADD ./docker-config.exs /docker-config.exs
2018-04-08 20:49:07 +00: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 14:15:44 +00:00
2018-04-08 20:49:07 +00:00
# Register entrypoint
2018-04-08 14:15:44 +00:00
ADD ./entrypoint.ash /
RUN chmod +x /entrypoint.ash
2018-04-08 20:49:07 +00:00
CMD ["/entrypoint.ash"]
2018-04-07 20:29:55 +00:00
EXPOSE 4000