Skip to content

Commit 7f4ee2b

Browse files
committed
Add docker compose
1 parent b48f42e commit 7f4ee2b

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,9 @@ ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
2222

2323
COPY requirements_extra.txt /tmp/
2424

25-
RUN apt-get update && apt-get install -y --no-install-recommends build-essential && \
26-
pip install --no-cache-dir -r /tmp/requirements_extra && \
25+
RUN pip install --no-cache-dir -r /tmp/requirements_extra.txt && \
2726
pip install --no-cache-dir ${PIP_FLAGS} superannotate && \
2827
pip install --no-cache-dir jupyterlab && \
29-
rm -rf /root/.cache/pip && \
30-
apt-get remove -y build-essential && \
31-
rm -rf /var/lib/apt/lists/* && \
32-
apt-get purge -y --auto-remove && \
33-
apt-get clean -y
28+
rm -rf /root/.cache/pip
3429

35-
RUN mkdir -p $HOME/.superannotate
36-
37-
CMD [ "jupyter", "lab", "--no-browser", "--ip", "0.0.0.0" ]
30+
CMD ["/bin/bash", "-l"]

docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
version: "3.7"
22
services:
3-
jupyterlab-server:
3+
superannotate_pythonsdk_jupyterlab_server:
4+
image: superannotate/pythonsdk:latest
45
build:
56
context: .
67
dockerfile: Dockerfile
78
ports:
89
- "8888:8888"
910
volumes:
10-
- ${HOME}/.superannotate:/root/
11+
- ${HOME}/.superannotate:/root/.superannotate
12+
command: jupyter lab --allow-root --NotebookApp.token='' --NotebookApp.password='' --no-browser --ip 0.0.0.0
1113
init: true
1214
stdin_open: true
1315
tty: true

superannotate/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.1.0b12"
1+
__version__ = "4.1.0b13"

0 commit comments

Comments
 (0)