Skip to content

Commit

Permalink
fix broken docker, update docker run docs (HumanSignal#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklub authored Jan 17, 2020
1 parent 528a55d commit 0f4a2e7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ npm-debug.log
Dockerfile
.dockerignore
# build
dist
docs
tests
public
label_studio.egg-info
.github
.vscode
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Building the main container
FROM python:3.6-slim
WORKDIR /app
WORKDIR /label-studio

# Copy and install requirements.txt first for caching
COPY backend/requirements.txt /app/backend/
RUN pip install -r backend/requirements.txt
COPY requirements.txt /label-studio
RUN pip install -r requirements.txt


ENV PORT="8200"

COPY . /app
EXPOSE ${PORT}
WORKDIR /app/backend

COPY . /label-studio

RUN pip install -e .
CMD ["/app/scripts/run-demo.sh", "image_bbox"]
CMD ["label-studio", "start", "new_project", "--init"]
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ pip install label-studio
# Initialize the project in labeling_project path
label-studio init labeling_project

# Start the server
# Start the server at http://localhost:8200
label-studio start labeling_project
```

#### Windows
#### Install on Windows
It's not necessary to install Visual Studio Compiler,
just download "regex" (or other packages you need to compile) from gholke builds corresponding to your python version:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#regex
Expand All @@ -63,10 +63,21 @@ Running the latest Label Studio version locally without installing package from
pip install -e .
```
```bash
# Start the server
# Start the server at http://localhost:8200
python label-studio/server.py start labeling_project --init
```

## Run docker
You can also pull prebuilt image and start server at `http://localhost:8200`:
```bash
docker start --rm -p 8200:8200 heartexlabs/label-studio:latest
```

In order to build local image, run:
```bash
docker build -t heartexlabs/label-studio:latest .
```


## One Click Deploy

Expand Down

0 comments on commit 0f4a2e7

Please sign in to comment.