wsl: add Dockerfile

This commit is contained in:
Jaewook Lee
2024-08-20 05:52:19 +09:00
parent 68fb12608a
commit c331986a7a

View File

@@ -136,21 +136,22 @@ cd ~
mkdir -p .jupyter # 없으면 폴더를 만든다.
cd .jupyter
cat <<"EOF" >Dockerfile
FROM alpine:latest
RUN apk add --no-cache openssh-client
EOF
cat <<"EOF" >docker-compose.yml
services:
jupyter:
image: alpine
build: .
container_name: jupyter
restart: unless-stopped
stop_grace_period: 0s
network_mode: host
volumes:
- $HOME/.ssh:/root/.ssh
entrypoint: sh -c
command:
- |
apk add openssh-client
ssh -tt $USER@localhost '~/.venv/bin/jupyter-lab --IdentityProvider.token=""'
entrypoint: ssh -tt $USER@localhost '~/.venv/bin/jupyter-lab --IdentityProvider.token=""'
EOF
docker compose up -d # Jupyter 서버 시작