1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00: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

@ -5,14 +5,17 @@
FROM node:12-alpine FROM node:12-alpine
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
ARG APP_DOMAIN=easypi.tv
WORKDIR /opt/app WORKDIR /opt/app
RUN set -xe \ RUN set -xe \
&& apk add --no-cache curl tar \ && 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 \ && 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 EXPOSE 3000 8080

@ -1,2 +1,12 @@
teleprompter 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

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