mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-01-12 22:57:55 +03:00
Update Dockerfile
This commit is contained in:
parent
f6ca90abb3
commit
f18d2be1ad
@ -4,21 +4,22 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt update && \
|
||||||
export DEBIAN_FRONTEND=noninteractive && \
|
apt dist-upgrade -y && \
|
||||||
# Set password to temp-password - reset to random password on startup
|
# 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 password temp-password | debconf-set-selections && \
|
||||||
echo mysql-server mysql-server/root_password_again 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
|
# Instal MySQL for data, node as the JS engine for uglifier
|
||||||
apt-get install -y mysql-server nodejs && \
|
apt-get install -y mysql-server nodejs git && \
|
||||||
gem update --system 2.6.1 && \
|
gem update --system && \
|
||||||
gem install bundler
|
gem install bundler && \
|
||||||
|
rm -rfv /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
COPY . /opt/staytus
|
RUN cd /opt && \
|
||||||
|
git clone https://github.com/adamcooke/staytus.git staytus && \
|
||||||
RUN cd /opt/staytus && \ && \
|
cd /opt/staytus && \
|
||||||
bundle install --deployment --without development:test && \
|
bundle update --all && \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
bundle install --deployment --without development:test
|
||||||
|
|
||||||
ENTRYPOINT /opt/staytus/docker-start.sh
|
ENTRYPOINT /opt/staytus/docker-start.sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user