[Updated] Devcontainer.json and Dockerfile, so that it can play audio
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
"runArgs": [
|
"runArgs": [
|
||||||
"--name=jelly-rescue-dev-cont",
|
"--name=jelly-rescue-dev-cont",
|
||||||
"--net=host",
|
"--net=host",
|
||||||
|
"--privileged",
|
||||||
|
"--volume", "/dev/snd:/dev/snd",
|
||||||
"--volume", "/tmp/.X11-unix:/tmp/.X11-unix",
|
"--volume", "/tmp/.X11-unix:/tmp/.X11-unix",
|
||||||
"--env", "DISPLAY=${localEnv:DISPLAY}"
|
"--env", "DISPLAY=${localEnv:DISPLAY}"
|
||||||
],
|
],
|
||||||
@@ -18,6 +20,7 @@
|
|||||||
"source=./scripts,target=/app/scripts,type=bind",
|
"source=./scripts,target=/app/scripts,type=bind",
|
||||||
"source=./dist,target=/app/dist,type=bind"
|
"source=./dist,target=/app/dist,type=bind"
|
||||||
],
|
],
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"settings": {},
|
"settings": {},
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ RUN apt-get update \
|
|||||||
libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev \
|
libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev \
|
||||||
libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev \
|
libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev \
|
||||||
sudo \
|
sudo \
|
||||||
|
alsa-utils \
|
||||||
&& rm -rf /var/cache/apt/*
|
&& rm -rf /var/cache/apt/*
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user