-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (30 loc) · 1.33 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# for arm64 see:
# - https://docs.docker.com/desktop/troubleshoot/known-issues/
# for nvidia gpus see:
# - https://github.com/IDEA-Research/Grounded-Segment-Anything/blob/main/Makefile
# - https://github.com/NVIDIA/nvidia-container-toolkit?tab=readme-ov-file
# - https://docs.docker.com/compose/gpu-support/
services:
main:
container_name: main
volumes:
- type: bind
source: .
target: /workspace
working_dir: /workspace
ports:
- '8888:8888'
build:
context: .
dockerfile_inline: |
FROM --platform=linux/amd64 ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y git python3 python3-pip
WORKDIR /workspace
COPY requirements.txt /workspace/requirements.txt
RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
# RUN pip install jupyter jupyterlab jupyter_contrib_nbextensions
# ENV JUPYTER_ENABLE_LAB=yes
# EXPOSE 8888 # http://localhost:8888/lab
# CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--allow-root", "--no-browser", "--ServerApp.token=''", "--ServerApp.password=''", "--ServerApp.allow_origin='*'", "--ServerApp.disable_check_xsrf=True", "--ServerApp.allow_root=True", "--ServerApp.open_browser=False"]
CMD ["tail", "-f", "/dev/null"]