about ready to start testingabout ready to start testing
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -3,6 +3,15 @@ FROM phusion/baseimage:0.11
|
||||
# Use baseimage-docker's init system.
|
||||
CMD ["/sbin/my_init"]
|
||||
|
||||
ENV \
|
||||
RUN_DB_MIGRATIONS=true \
|
||||
SIDEKIQ_WORKERS=5 \
|
||||
RAILS_SERVE_STATIC_FILES=true \
|
||||
RAILS_ENV=production \
|
||||
NODE_ENV=production \
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mastodon/app/bin
|
||||
|
||||
|
||||
# install os prereq stuff to image
|
||||
ADD prereqs.sh /tmp/prereqs.sh
|
||||
RUN bash /tmp/prereqs.sh
|
||||
@@ -10,6 +19,8 @@ RUN bash /tmp/prereqs.sh
|
||||
# install mastodon:
|
||||
ADD install.sh /tmp/install.sh
|
||||
|
||||
WORKDIR /mastodon
|
||||
ENV HOME /mastodon
|
||||
RUN chpst -u mastodon:mastodon bash /tmp/install.sh
|
||||
|
||||
ADD ./rootfs /
|
||||
@@ -19,3 +30,6 @@ RUN chmod +x /usr/local/bin/* /etc/service/*/run
|
||||
VOLUME /state
|
||||
|
||||
EXPOSE 3000 4000
|
||||
|
||||
LABEL maintainer="Jeffrey Paul <sneak@sneak.berlin>" \
|
||||
description="Your self-hosted, globally interconnected microblogging community"
|
||||
|
||||
Reference in New Issue
Block a user