1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

update teleprompter

This commit is contained in:
kev 2021-10-19 15:47:50 +08:00
parent 08e45dc37c
commit c0c7e7df2b
3 changed files with 21 additions and 4 deletions

View File

@ -5,14 +5,17 @@
FROM node:12-alpine
MAINTAINER EasyPi Software Foundation
ARG APP_DOMAIN=easypi.tv
WORKDIR /opt/app
RUN set -xe \
&& apk add --no-cache curl tar \
&& npm install npm-run-all \
&& ln -s node_modules/npm-run-all/bin/npm-run-all/index.js npm-run-all \
&& curl -sSL https://github.com/manifestinteractive/teleprompter/archive/refs/heads/master.tar.gz | tar xz --strip 1 \
&& npm install
&& 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
EXPOSE 3000 8080

View File

@ -1,2 +1,12 @@
teleprompter
============
Browser-based [TelePrompter][1] with Remote Control
```bash
$ docker-compose build
$ docker-compose up -d
$ curl -I localhost:3000 localhost:8080
```
[1]: https://github.com/manifestinteractive/teleprompter

View File

@ -1,7 +1,11 @@
version: "3.8"
services:
teleprompter:
image: easypi/teleprompter-arm64
image: teleprompter
build:
context: .
args:
- APP_DOMAIN=easypi.tv
init: true
ports:
- "3000:3000"