Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerfile to build and run in docker #75

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:latest
MAINTAINER harshavardhanc95@gmail.com
RUN mkdir /SafariBooks-Downloader
#copying the files inside the image
COPY . /SafariBooks-Downloader
WORKDIR /SafariBooks-Downloader
#installing node dependencies
RUN npm install -g
#verify the installation by running this inside container
#safaribooks-downloader --version
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,37 @@ To verify the installation, please run:
safaribooks-downloader --version
```

## Running in Docker

### Pre-requisites:
Docker should be installed in the machine.

Clone the repo:

```bash
git clone https://github.com/nicohaenggi/SafariBooks-Downloader.git
```

Get inside the cloned directory SafariBooks-Downloader.

Build the docker image using dockerfile:

```bash
docker build -t <image_name> .
```

Run the built image as container:

```bash
docker run -it <image_name> bash
```

To verify the installation, please run:

```bash
safaribooks-downloader --version
```

If the command returns a version number, you have successfully installed the tool globally. The current release is `v1.0.0`.

## How To Update
Expand Down