1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/teleprompter/Dockerfile

23 lines
570 B
Docker
Raw Normal View History

2021-10-19 07:19:42 +00:00
#
# Dockerfile for teleprompter
#
FROM node:12-alpine
MAINTAINER EasyPi Software Foundation
2021-10-19 07:47:50 +00:00
ARG APP_DOMAIN=easypi.tv
2021-10-19 07:19:42 +00:00
WORKDIR /opt/app
RUN set -xe \
&& apk add --no-cache curl tar \
&& curl -sSL https://github.com/manifestinteractive/teleprompter/archive/refs/heads/master.tar.gz | tar xz --strip 1 \
2021-10-19 07:47:50 +00:00
&& find . -type f -exec sed -i "s@promptr\.tv@$APP_DOMAIN@g" {} + \
&& npm install \
&& npm install npm-run-all \
&& ln -s node_modules/npm-run-all/bin/npm-run-all/index.js npm-run-all
2021-10-19 07:19:42 +00:00
EXPOSE 3000 8080
CMD ["./npm-run-all", "--parallel", "server", "client"]