34 lines
1.2 KiB
Docker
Raw Normal View History

2019-10-02 00:55:54 +03:00
FROM ruby:buster
LABEL maintainer="Tim Perry <pimterry@gmail.com>; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
USER root
2019-10-02 01:00:58 +03:00
RUN apt update && \
apt dist-upgrade -y && \
2019-10-02 00:55:54 +03:00
# Set password to temp-password - reset to random password on startup
echo mysql-server mysql-server/root_password password temp-password | debconf-set-selections && \
echo mysql-server mysql-server/root_password_again password temp-password | debconf-set-selections && \
# Instal MySQL for data, node as the JS engine for uglifier
2019-10-02 01:00:58 +03:00
apt-get install -y mysql-server nodejs git && \
gem update --system && \
gem install bundler && \
rm -rfv /var/lib/apt/lists/* /tmp/* /var/tmp/*
2019-10-02 00:55:54 +03:00
2019-10-02 01:00:58 +03:00
RUN cd /opt && \
git clone https://github.com/adamcooke/staytus.git staytus && \
cd /opt/staytus && \
bundle update --all && \
bundle install --deployment --without development:test
2019-10-02 00:55:54 +03:00
ENTRYPOINT /opt/staytus/docker-start.sh
# Persists all DB state
VOLUME /var/lib/mysql
# Persists copies of other relevant files (DB config, custom themes). Contents of this are copied
# to the relevant places each time the container is started
VOLUME /opt/staytus/persisted
EXPOSE 5000