Skip to content

Commit b48f42e

Browse files
committed
Docker improve
1 parent efcb3bd commit b48f42e

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ ENV VIRTUAL_ENV=$HOME/venv_superannotatesdk
2020
RUN python -m venv ${VIRTUAL_ENV}
2121
ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
2222

23+
COPY requirements_extra.txt /tmp/
24+
2325
RUN apt-get update && apt-get install -y --no-install-recommends build-essential && \
24-
pip install --no-cache-dir shapely && \
26+
pip install --no-cache-dir -r /tmp/requirements_extra && \
2527
pip install --no-cache-dir ${PIP_FLAGS} superannotate && \
28+
pip install --no-cache-dir jupyterlab && \
2629
rm -rf /root/.cache/pip && \
2730
apt-get remove -y build-essential && \
2831
rm -rf /var/lib/apt/lists/* && \
@@ -31,4 +34,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends build-essential
3134

3235
RUN mkdir -p $HOME/.superannotate
3336

34-
CMD ["/bin/bash"]
37+
CMD [ "jupyter", "lab", "--no-browser", "--ip", "0.0.0.0" ]

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: "3.7"
2+
services:
3+
jupyterlab-server:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
ports:
8+
- "8888:8888"
9+
volumes:
10+
- ${HOME}/.superannotate:/root/
11+
init: true
12+
stdin_open: true
13+
tty: true

superannotate/.dockerignore

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)