mastodon-docker/Dockerfile

22 lines
385 B
Docker
Raw Normal View History

2019-12-08 05:10:21 +00:00
FROM phusion/baseimage:0.11
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
2019-12-08 05:46:17 +00:00
# install os prereq stuff to image
ADD prereqs.sh /tmp/prereqs.sh
RUN bash /tmp/prereqs.sh
2019-12-08 05:10:21 +00:00
2019-12-08 05:46:17 +00:00
# install mastodon:
ADD install.sh /tmp/install.sh
RUN chpst -u mastodon:mastodon bash /tmp/install.sh
2019-12-08 05:10:21 +00:00
ADD ./rootfs /
RUN chmod +x /usr/local/bin/* /etc/service/*/run
VOLUME /state
EXPOSE 3000 4000