mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-03-30 12:25:35 +00:00
📦 build(dev-container): Persist VS Code server and expose NodePort range
This commit is contained in:
@@ -70,7 +70,7 @@ RUN userdel -r $(getent passwd ${HOST_UID} | cut -d: -f1) 2>/dev/null || true &&
|
||||
usermod -aG docker dev
|
||||
|
||||
# Setup directories
|
||||
RUN mkdir -p /home/dev/.kube && chown -R dev:dev /home/dev
|
||||
RUN mkdir -p /home/dev/.kube /home/dev/.vscode-server && chown -R dev:dev /home/dev
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
|
||||
@@ -20,9 +20,11 @@ services:
|
||||
- "6443:6443" # k3s API
|
||||
- "25565:25565" # minecraft
|
||||
- "25577:25577" # velocity
|
||||
- "30000:32767" # NodePort range
|
||||
volumes:
|
||||
- "../:/workspace"
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
- vscode-server:/home/dev/.vscode-server
|
||||
working_dir: "/workspace"
|
||||
depends_on:
|
||||
db:
|
||||
@@ -53,3 +55,4 @@ services:
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
vscode-server:
|
||||
|
||||
Reference in New Issue
Block a user