Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3"
services:
paper2html:
image: ghcr.io/ktaaaki/paper2html:latest
ports:
- "5000:5000"
volumes:
- paper:/paper_cache

htmlserver:
build:
context: .
dockerfile: htmlserver.Dockerfile
ports:
- "8080:8080"
volumes:
- paper:/paper_cache

volumes:
paper:
10 changes: 10 additions & 0 deletions docker/htmlserver.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM alpine:latest

RUN apk update && apk add --no-cache curl unzip libc6-compat \
&& curl -s https://api.github.com/repos/mjpclab/go-http-file-server/releases/latest \
| grep "browser_download_url.*linux-amd64.zip" | cut -d : -f 2,3 | xargs curl -JLo "ghfs.zip" \
&& unzip "ghfs.zip" \
&& rm "ghfs.zip" \
&& mkdir /paper_cache

CMD [ "./ghfs", "-l", "8080", "-r", "/paper_cache" , "-U", "--global-delete", "--global-archive" ]