aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile23
-rw-r--r--docker-compose.yml9
2 files changed, 16 insertions, 16 deletions
diff --git a/Dockerfile b/Dockerfile
index 2277696..b1e9189 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,25 +1,22 @@
-FROM alpine:3.15 as certbuilder
+FROM alpine:3.18 as certbuilder
RUN apk add openssl
WORKDIR /certs
RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert && cat server.key server.cert > cert.pem
-FROM nvidia/cuda:11.7.0-runtime-ubuntu20.04
+FROM nvidia/cuda:12.2.2-runtime-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update &&\
apt-get install -y software-properties-common &&\
add-apt-repository ppa:deadsnakes/ppa &&\
apt-get update &&\
- apt-get install -y python3.10 python3-pip
-RUN pip install pysocks
-ENV HTTP_PROXY=socks5://172.17.0.1:9995
-ENV HTTPS_PROXY=socks5://172.17.0.1:9995
-RUN pip install jupyterlab scipy numpy poetry numba torch tensorflow transformers huggingface-hub ipywidgets pandas
-RUN apt-get update && apt-get install -y curl wget unzip
-RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
-RUN apt-get -y install nodejs
+ apt-get install -y python3.10 python3-pip curl wget unzip
+RUN pip install pysocks scapy scikit-learn matplotlib jupyterlab scipy numpy poetry numba torch tensorflow transformers huggingface-hub ipywidgets pandas 'python-lsp-server[all]'
+RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
+COPY --from=certbuilder /certs /certs
# RUN pip install ipywidgets pandas pysocks
# RUN jupyter labextension install jupyterlab_vim
-COPY --from=certbuilder /certs /certs
-RUN pip install scapy matplotlib
-RUN pip install --upgrade torch
+# RUN pip install scaPY MATPLOTlib
+# RUN pip install --upgrade torch
# RUN apt update && apt install -y tcpdump tshark
+# RUN pip install 'python-lsp-server[all]'
+# RUN pip install sklearn
diff --git a/docker-compose.yml b/docker-compose.yml
index 324bf90..9b99b3f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -4,11 +4,12 @@ services:
image: devijlab:v0.2
build:
context: .
+ # user: ${UID}:${GID}
volumes:
- /home/devi/jupyterlab_docker/datasets:/datasets:ro
- /home/devi/jupyterlab_docker/notebooks:/opt/app/data/
ports:
- - 8889:8888
+ - 127.0.0.1:8889:8888
# networks:
# - devijlab-net
network_mode: bridge
@@ -18,11 +19,13 @@ services:
- "host.docker.internal:host-gateway"
environment:
- JUPYTER_ENABLE_LAB=yes
- - HTTP_PROXY=socks5://172.17.0.1:9995
- - HTTPS_PROXY=socks5://172.17.0.1:9995
+ - HTTP_PROXY=http://172.17.0.1:8118
+ - HTTPS_PROXY=http://172.17.0.1:8118
+ - ALL_PROXY=socks5h://172.17.0.1:9995
- NO_PROXY="localhost, 127.0.0.1"
- NVIDIA_VISIBLE_DEVICES=all
runtime: nvidia
+ restart: unless-stopped
volumes:
devijlab-vault:
networks: