Skip to content

Commit

Permalink
build(Dockerfile): Add non-root user for Chromedocs(README): Document…
Browse files Browse the repository at this point in the history
… available streams
  • Loading branch information
janyksteenbeek committed Dec 10, 2023
1 parent 14b70f9 commit 4a9fdb8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ RUN apt-get update && apt-get install gnupg wget -y && \
apt-get install google-chrome-stable -y --no-install-recommends && \
rm -rf /var/lib/apt/lists/*

RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
&& mkdir -p /home/pptruser/Downloads \
&& chown -R pptruser:pptruser /home/pptruser \
&& chown -R pptruser:pptruser /screenshots \
&& chown -R pptruser:pptruser /usr/local/share/.config/yarn/global/node_modules

USER pptruser

# Install app dependencies
COPY package*.json ./

Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ bun run index.ts

```

After that, the server is available on port 8080. You can get the stream link by requesting `/nporadio2.m3u8`.
After that, the server is available on port 8080.

## Streams

The following streams are available:

- `/nporadio2.m3u8` - M3U8 stream with FairPlay DRM (HLS)
- `/nporadio2.mpd` - MPEG-DASH stream with Widevine DRM (DASH)

## Environment variables

Expand Down

0 comments on commit 4a9fdb8

Please sign in to comment.