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

37 lines
810 B
Docker
Raw Normal View History

2017-11-23 20:21:10 +01:00
FROM alpine:3.6
ENV UID=991 GID=991
RUN export BUILD_DEPS="build-base \
libxml2-dev \
libxslt-dev \
curl-dev \
git \
imagemagick-dev" \
2017-11-23 21:02:12 +01:00
&& apk add -U ${BUILD_DEPS} \
2017-11-23 20:21:10 +01:00
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/ /
2017-11-23 21:04:56 +01:00
VOLUME ["/config", "/public"]
2017-11-23 20:36:18 +01:00
EXPOSE 3000
2017-11-23 20:21:10 +01:00
ENTRYPOINT [ "/usr/local/bin/startup" ]
CMD ["/bin/s6-svscan", "/etc/s6.d"]