From acf938eb51c06db272891ef0972790a3c672414e Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Sat, 31 Dec 2016 13:06:46 +0900 Subject: [PATCH] :sparkles: --- docker/Dockerfile | 7 +------ docker/misskey.sh | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 docker/misskey.sh diff --git a/docker/Dockerfile b/docker/Dockerfile index 481c7b6bc..429d2f8a4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -17,12 +17,7 @@ RUN pacman -Syyu --noconfirm RUN pacman -S --noconfirm git nodejs npm mongodb redis -RUN echo '#!/bin/sh' >> /root/misskey.sh -RUN echo 'redis-server --daemonize yes' >> /root/misskey.sh -RUN echo 'mongod > /dev/null &' >> /root/misskey.sh -RUN echo 'cd /root/misskey' >> /root/misskey.sh -RUN echo 'npm start' >> /root/misskey.sh -RUN echo 'tail -f /dev/null' >> /root/misskey.sh +COPY misskey.sh /root/misskey.sh RUN chmod u+x /root/misskey.sh EXPOSE 80 diff --git a/docker/misskey.sh b/docker/misskey.sh new file mode 100644 index 000000000..82291e3a9 --- /dev/null +++ b/docker/misskey.sh @@ -0,0 +1,6 @@ +#!/bin/sh +redis-server --daemonize yes +mongod > /dev/null & +cd /root/misskey +npm start +tail -f /dev/null