First Version (#1)
Co-authored-by: Anujith Muraleedharan <140189296+AnujithM@users.noreply.github.com>
This commit is contained in:
7
.devcontainer/Dockerfile
Normal file
7
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM python:3.9
|
||||
RUN apt-get update && apt-get install -y \
|
||||
fluxbox \
|
||||
x11vnc \
|
||||
python3-tk \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
CMD ["x11vnc", "-forever", "-nopw", "-create"]
|
||||
9
.devcontainer/devcontainer.json
Normal file
9
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "Python GUI Devcontainer",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"forwardPorts": [5901],
|
||||
"runArgs": ["--env", "DISPLAY=host.docker.internal:0"],
|
||||
"mounts": ["source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind"]
|
||||
}
|
||||
Reference in New Issue
Block a user