Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.
Open
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
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM golang:1.15-alpine AS build-stage

RUN apk add --no-cache git

WORKDIR /mdathome-golang

COPY go.mod .
COPY go.sum .
RUN go mod download

COPY . .
RUN CGO_ENABLED=0 go build -o ./mdathome-golang -tags netgo -trimpath -ldflags '-s -w' ./cmd/mdathome


FROM alpine:3

RUN apk add --no-cache ca-certificates

WORKDIR /mangahome

COPY --from=build-stage /mdathome-golang/mdathome-golang .
VOLUME /mangahome/cache

CMD ./mdathome-golang
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ Do not worry, this is just the client creating a sample configuration, as it is
If you fancy yourself a hardcore masochist that likes to compile everything yourself manually, feel free to do so!

```bash
root@af04d92d0b1e:/go# go get github.com/lflare/mdathome-golang
root@af04d92d0b1e:/go# go run github.com/lflare/mdathome-golang
go get github.com/lflare/mdathome-golang
go run github.com/lflare/mdathome-golang
```

#### Docker
If you want to run the client in a Docker container you can do so! Make sure to point the container to your cache and configuration file location.

```bash
docker run -d -v /path/to/your/cache:/mangahome/cache -v /path/to/your/settings.json:/mangahome/settings.json -p 443:443 lflare/mdathome-golang:latest
```

## Common Problems
Expand Down