Create devcontainer for development with X11 forwarding

This commit is contained in:
Jakub 2026-04-26 15:27:24 +08:00
parent 62c821e87b
commit 9be1526cb1
3 changed files with 34 additions and 1 deletions

21
.devcontainer/Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM debian:trixie
RUN apt update
RUN apt upgrade
ENV DISPLAY=:0
# Install chicken
RUN apt install -y build-essential git
RUN apt install -y chicken-bin
# Install chicken dependencies
RUN chicken-install srfi-99 srfi-1 srfi-113 srfi-69 csm srfi-78
# Install raylib
RUN apt install -y libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
RUN git clone --depth 1 https://github.com/raysan5/raylib.git raylib && \
cd raylib/src/ && \
make PLATFORM=PLATFORM_DESKTOP && \
make install
RUN chicken-install raylib

View file

@ -0,0 +1,12 @@
{
"name": "Imugi Dev Container",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": [
"--net", "host",
"-e", "DISPLAY=:0",
"-e", "XAUTHORITY=/tmp/.Xauthority",
"-v", "${localEnv:HOME}/.Xauthority:/tmp/.Xauthority"
]
}

View file

@ -1 +1 @@
-static -L /usr/local/lib64/libraylib.a
-static -L /usr/local/lib/libraylib.a -L -lX11 -L -lXrandr -L -lXi -L -lXcursor -L -lXinerama -L -lXext -L -lGL -L -lm -L -lpthread -L -ldl -L -lrt