Skip to content

Commit

Permalink
added dockerfile etc, closes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtillmann committed Oct 31, 2024
1 parent 0664f24 commit 194125b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 26,885 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/coverage
/node_modules
12 changes: 12 additions & 0 deletions .github/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Create and _convert_ chapters for podcasts, youtube, matroska, mkvmerge/nero/vorbis, webvtt, ffmpeginfo, ffmetadata, pyscenedetect, apple chapters, edl, podlove simple chapters (xml, json), apple hls chapters and mp4chaps.

> Build on [@mtillmann/chapters](https://github.com/Mtillmann/chapters)
## [Web App](https://mtillmann.github.io/chaptertool)

[Click here to open the web app](https://mtillmann.github.io/chaptertool).
Expand Down Expand Up @@ -140,3 +142,13 @@ You can combine config with regular cli options. Evaluation occurs in this order
## Examples & FAQ

[examples.md](/examples.md), [FAQ](/faq.md)

## Docker

Use docker to run the web GUI:

```shell
docker build -t chaptertool-gui .
docker run -p 8989:8989 chaptertool-gui
# open http://localhost:8989 in your browser
```
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Use a Node.js base image
FROM node:20

# Set the working directory
WORKDIR /app

# Copy package files and install dependencies
COPY . .
RUN npm install
RUN npm run build

# Expose port (change if needed)
EXPOSE 8989

# Run the app
CMD ["node", "chaptertool.js", "serve"]
Loading

0 comments on commit 194125b

Please sign in to comment.