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
|
2019-10-02 02:01:55 +03:00
|
|
|
|
2019-10-02 00:55:54 +03:00
|
|
|
USER root
|
|
|
|
|
2019-10-02 02:01:55 +03:00
|
|
|
COPY --from=epicmorg/prod /etc/locale.gen /etc/locale.gen
|
|
|
|
COPY --from=epicmorg/prod /etc/apt/sources.list /etc/apt/sources.list
|
|
|
|
COPY --from=epicmorg/prod /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
2019-10-02 01:00:58 +03:00
|
|
|
RUN apt update && \
|
|
|
|
apt dist-upgrade -y && \
|
2019-10-02 02:01:55 +03:00
|
|
|
# node as the JS engine for uglifier
|
|
|
|
apt-get install -y nodejs git && \
|
2019-10-02 01:00:58 +03:00
|
|
|
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 && \
|
2019-10-02 02:01:55 +03:00
|
|
|
cd /opt/staytus && \
|
|
|
|
bundle update --all && \
|
2019-10-02 01:00:58 +03:00
|
|
|
bundle install --deployment --without development:test
|
2019-10-02 00:55:54 +03:00
|
|
|
|
2019-10-02 02:01:55 +03:00
|
|
|
ENTRYPOINT /entrypoint.sh
|
2019-10-02 00:55:54 +03:00
|
|
|
|
2019-10-02 02:01:55 +03:00
|
|
|
# Persists copies of other relevant files (DB config, custom themes). Contents of this are copied
|
2019-10-02 00:55:54 +03:00
|
|
|
# to the relevant places each time the container is started
|
|
|
|
VOLUME /opt/staytus/persisted
|
|
|
|
|
|
|
|
EXPOSE 5000
|