From 37cbb691d75d3b520ef1516c84abcd6fb2b000a9 Mon Sep 17 00:00:00 2001 From: Leopere Date: Fri, 1 Jun 2018 16:21:16 -0400 Subject: [PATCH] Organization and adding docker-entrypoint --- www.spee.ch/Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www.spee.ch/Dockerfile b/www.spee.ch/Dockerfile index c8b3c14..4690907 100644 --- a/www.spee.ch/Dockerfile +++ b/www.spee.ch/Dockerfile @@ -1,19 +1,23 @@ +MAINTAINER chamunks [at] gmail [dot] com ## Base Image -FROM node:8-alpine ## Using the smallest container available ## https://hub.docker.com/_/node/ # 8.11.2-alpine, 8.11-alpine, 8-alpine, carbon-alpine (8/alpine/Dockerfile) +FROM node:8-alpine -MAINTAINER chamunks [at] gmail [dot] com +## Install base packages and clone repo to src directory. RUN npm update && \ apk update && apk --no-cache add git curl wget && \ adduser speech -h /app/ -s /bin/ash -D && \ chown -Rv speech /app && \ git clone https://github.com/lbryio/www.spee.ch.git /usr/local/src/www.spee.ch/ -EXPOSE 3000 +## Install container support files +RUN source <(curl -s https://raw.githubusercontent.com/chamunks/docker-support/master/bin/install) +ADD ./docker-entrypoint.sh /bin/docker-entrypoint +EXPOSE 3000 USER speech WORKDIR /app/ ENTRYPOINT ["docker-entrypoint"]