diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..363f140 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM crystallang/crystal:0.32.0 + +RUN apt-get update && apt-get install -y curl + +RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - +RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - +RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list + +RUN apt-get update && apt-get install -y nodejs yarn libsqlite3-dev + +RUN git clone https://github.com/hkalexling/Mango +RUN cd Mango && make && make install diff --git a/README.md b/README.md index 62d7d36..9fa6eec 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,12 @@ Mango is a self-hosted manga server and reader. Its features include ### Docker +1. Make sure you have docker installed and running +2. Clone the repository +3. `docker build -t mango:mango .` +4. `docker run -td --name mango -p 9000:9000 -v /path/to/your/mango/library:/root/mango/library mango:mango` +5. Now the docker container is up and running. You can get into it using `docker exec -it mango /bin/bash` and then start Mango using the command `mango` + ### Build from source 1. Make sure you have Crystal, Node and Yarn installed @@ -71,22 +77,18 @@ On the first run, Mango would log the default username and a randomly generated ## Screenshots -Library +Library: ![library screenshot](./.github/screenshots/library.png) -Title +Title: ![title screenshot](./.github/screenshots/title.png) -Reader +Reader: ![reader screenshot](./.github/screenshots/reader.png) -Mobile UI +Mobile UI: ![mobile screenshot](./.github/screenshots/mobile.png) - -## Contributors - -- [Alex Ling](https://github.com/your-github-user) - creator and maintainer