This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
docker-diaspora/Dockerfile

36 lines
783 B
Docker

FROM alpine:3.6
ENV UID=991 GID=991
RUN export BUILD_DEPS="build-base \
libxml2-dev \
libxslt-dev \
curl-dev \
git \
imagemagick-dev" \
apk add -U ${BUILD_DEPS} \
libressl \
imagemagick \
curl \
ghostscript \
git \
postgresql-client \
nodejs \
nodejs-npm \
ruby \
ruby-irb \
ruby-rdoc \
su-exec \
s6 \
&& gem install bundler \
&& git clone -b master https://github.com/diaspora/diaspora.git /diaspora \
&& cd /diaspora \
&& chmod +x script/server \
&& apk del ${BUILD_DEPS} \
&& rm -rf /tmp/* /var/cache/apk/* /tmp/* /root/.gnupg /root/.cache/ /diaspora/.git
COPY rootfs/ /
VOLUMES ["/config"]
ENTRYPOINT [ "/usr/local/bin/startup" ]
CMD ["/bin/s6-svscan", "/etc/s6.d"]