mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 22:25:40 +03:00
Create Dockerfile
This commit is contained in:
parent
4ab60f68b1
commit
f6ca90abb3
32
_experemental/staytus/Dockerfile
Normal file
32
_experemental/staytus/Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
FROM ruby:buster
|
||||
LABEL maintainer="Tim Perry <pimterry@gmail.com>; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
USER root
|
||||
|
||||
RUN apt-get update && \
|
||||
export DEBIAN_FRONTEND=noninteractive && \
|
||||
# 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
|
||||
apt-get install -y mysql-server nodejs && \
|
||||
gem update --system 2.6.1 && \
|
||||
gem install bundler
|
||||
|
||||
COPY . /opt/staytus
|
||||
|
||||
RUN cd /opt/staytus && \ && \
|
||||
bundle install --deployment --without development:test && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user