From 369bea7d33ac82423814aa067e645a179e72cf89 Mon Sep 17 00:00:00 2001 From: Leopere Date: Thu, 31 May 2018 20:08:46 -0400 Subject: [PATCH] Adding base Dockerfile --- www.spee.ch/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 www.spee.ch/Dockerfile diff --git a/www.spee.ch/Dockerfile b/www.spee.ch/Dockerfile new file mode 100644 index 0000000..340df06 --- /dev/null +++ b/www.spee.ch/Dockerfile @@ -0,0 +1,20 @@ +## 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) + +MAINTAINER chamunks [at] gmail [dot] com + +RUN npm update && \ + apk update && apk --no-cache add git && \ + adduser speech -h /app/ -s /bin/ash -D && \ + chown -Rv speech /app && \ + git clone https://github.com/lbryio/www.spee.ch.git /src/spee.ch/ + +EXPOSE 3000 + +USER speech +WORKDIR /app/ +ENTRYPOINT ["docker-entrypoint"] +CMD ["npm", "run", "start:dev"]