Skip to content

Commit 194125b

Browse files
committed
added dockerfile etc, closes #15
1 parent 0664f24 commit 194125b

File tree

5 files changed

+36
-26885
lines changed

5 files changed

+36
-26885
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/coverage
2+
/node_modules

.github/readme.md

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
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.
66

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

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

142144
[examples.md](/examples.md), [FAQ](/faq.md)
145+
146+
## Docker
147+
148+
Use docker to run the web GUI:
149+
150+
```shell
151+
docker build -t chaptertool-gui .
152+
docker run -p 8989:8989 chaptertool-gui
153+
# open http://localhost:8989 in your browser
154+
```

Dockerfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Use a Node.js base image
2+
FROM node:20
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Copy package files and install dependencies
8+
COPY . .
9+
RUN npm install
10+
RUN npm run build
11+
12+
# Expose port (change if needed)
13+
EXPOSE 8989
14+
15+
# Run the app
16+
CMD ["node", "chaptertool.js", "serve"]

0 commit comments

Comments
 (0)