From 367ca64c9202ffa70c8d61fb38fddabbb6653d8c Mon Sep 17 00:00:00 2001 From: Ryan McGuire Date: Thu, 30 May 2019 19:01:28 -0400 Subject: [PATCH] Multi-stage Dockerfile for spee.ch --- spee.ch/Dockerfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 spee.ch/Dockerfile diff --git a/spee.ch/Dockerfile b/spee.ch/Dockerfile new file mode 100644 index 0000000..6c0fd5d --- /dev/null +++ b/spee.ch/Dockerfile @@ -0,0 +1,29 @@ +FROM ubuntu:18.04 as prep +LABEL MAINTAINER="leopere [at] nixc [dot] us" +RUN apt-get update && \ + apt-get install -y \ + git \ + curl \ + unzip \ + ffmpeg \ + nodejs \ + npm \ + imagemagick +ARG REPO=https://github.com/lbryio/spee.ch +ARG VERSION=master +RUN git clone ${REPO} /spee.ch && \ + cd /spee.ch && \ + git checkout ${VERSION} && \ + rm -rf .git && \ + npm install + +FROM ubuntu:18.04 as app +RUN apt-get update && \ + apt-get install -y \ + nodejs \ + ffmpeg \ + imagemagick \ + npm +COPY --from=prep /spee.ch /spee.ch +WORKDIR /spee.ch +CMD /usr/bin/npm run build && /usr/bin/npm run start -- 2.45.2