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

Dockerized version #179

Open
wants to merge 4 commits into
base: master
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
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:12-alpine

COPY . /src
WORKDIR /src
RUN npm install -g live-server
9 changes: 9 additions & 0 deletions docker/run_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

docker run -it \
-d \
--rm \
--name imglab \
-p 8080:8080 \
-w /src/ \
francozacco/imglab:latest live-server
13 changes: 12 additions & 1 deletion docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,15 @@ To use it offline, you can either download installers or clone this repo and run
3. Run `$ live-server` in /imglab/ folder.
4. Open your browser (if it hasn't popped up already) at: `http://127.0.0.1:8080/`

*Note that* [live-server](https://www.npmjs.com/package/live-server) is just an app to run the server in easy way. You may try any other option as well.
*Note that* [live-server](https://www.npmjs.com/package/live-server) is just an app to run the server in easy way. You may try any other option as well.

#### Installing Dockerized version

Assuming you installed Docker on your computer, follow below instructions.

1. run `$ docker run -it -d --rm --name imglab -p 8080:8080 -w /src/ francozacco/imglab:latest live-server` and wait until the docker container is up and running.
2. Go to your browser and go to `http://127.0.0.1:8080/`

#### Stopping the docker container

Just run `docker kill imglab`, and that's it.