Update structure

This commit is contained in:
sn0w
2018-04-08 22:49:07 +02:00
parent 3b84dfd5cf
commit 99f9c49151
12 changed files with 319 additions and 178 deletions

View File

@@ -1,12 +1,25 @@
FROM elixir:1.6-alpine
RUN apk add --no-cache --virtual .build alpine-sdk git
WORKDIR /pleroma
# 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
ADD ./docker-config.exs /docker-config.exs
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
# Register entrypoint
ADD ./entrypoint.ash /
RUN chmod +x /entrypoint.ash
ENTRYPOINT ["/entrypoint.ash"]
CMD ["run"]
CMD ["/entrypoint.ash"]
EXPOSE 4000