Comments (2)
Hi!
Sure, I can make instruction more clear.
If you run make
It will show available options.
- To build:
make build
- To install (build and add to path):
make install
It will automatically build binary for your arch. You if want cross compilation you'll have to set env variables to specify what os and arch you'd like to build for
GOOS=darwin GOARCH=386 make build
Hope it helps!
from mangal.
@metafates Thanks for making clear instructions!
I am not sure how one would run the binary from a Docker image because it seems to require manual configuration.
Here is a working Dockerfile that builds the binary from source and creates a small image, if it helps :)
FROM golang:latest AS builder
ENV MANGAL_DOWNLOADER_PATH=/downloads
ENV MANGAL_UID=1000
ENV MANGAL_GID=1000
COPY . /mangal-build
WORKDIR /mangal-build
RUN GOOS=linux GOARCH=arm64 make build
FROM alpine:latest
COPY --from=builder --chown=${MANGAL_UID}:${MANGAL_GID} /mangal-build/mangal /mangal
COPY --from=builder --chown=${MANGAL_UID}:${MANGAL_GID} /mangal-build/config /config
COPY --from=builder --chown=${MANGAL_UID}:${MANGAL_GID} /mangal-build/downloads ${MANGAL_DOWNLOADER_PATH}
USER ${MANGAL_UID}:${MANGAL_GID}
WORKDIR /
ENTRYPOINT ["/mangal"]
from mangal.
Related Issues (20)
- Can't Find Title, but title confirmed to exist
- "--chapters all" won't download new chapters after first download HOT 2
- Headless module's browser on custom sources doesn't get closed on each chapter download HOT 1
- Mangadex doesn't list all chapters given the language HOT 7
- Cannot install HOT 2
- [minor] packages shouldn't install in local
- Add support JPEG XL
- error
- curl: option -sfLo: is badly used here HOT 1
- Empty volume folders when downloading cbz files HOT 1
- Add download directory option and output file name option to Inline mode
- Volume directories are not created correctly when config "create_volume_dir" is true HOT 1
- New Chapters not getting updated HOT 5
- Trending or recent Section for each manga source HOT 1
- Long pages get cut wrongly
- panic: runtime error: index out of range
- Empty results from running querying for manga on Manganato HOT 2
- Support X.X chapter numbering. HOT 1
- Mangasee scraper does not find new chapter HOT 1
- mangadex's default content rating filters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mangal.