diff --git a/docker-playwright-jwm/Dockerfile b/docker-playwright-jwm/Dockerfile new file mode 100644 index 0000000..5beac1c --- /dev/null +++ b/docker-playwright-jwm/Dockerfile @@ -0,0 +1,16 @@ +FROM mcr.microsoft.com/playwright:jammy +ARG DEBIAN_FRONTEND=noninteractive +ARG TZ=Asia/Tokyo +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + jwm \ + novnc \ + supervisor \ + x11vnc \ + xterm \ + && rm -rf /var/lib/apt/lists/* \ + && npm install --global playwright +COPY supervisord.conf /etc/supervisor/supervisord.conf +EXPOSE 8080 +ENV DISPLAY=:0 +CMD ["supervisord"] diff --git a/docker-playwright-jwm/compose.yml b/docker-playwright-jwm/compose.yml new file mode 100644 index 0000000..abd50d5 --- /dev/null +++ b/docker-playwright-jwm/compose.yml @@ -0,0 +1,6 @@ +services: + app: + image: kou029w/docker-playwright-jwm + build: "." + ipc: host + ports: ["8080:8080"] diff --git a/docker-playwright-jwm/supervisord.conf b/docker-playwright-jwm/supervisord.conf new file mode 100644 index 0000000..867790f --- /dev/null +++ b/docker-playwright-jwm/supervisord.conf @@ -0,0 +1,18 @@ +[supervisord] +nodaemon = true + +[program:jwm] +command = jwm +autorestart = true + +[program:websockify] +command = websockify --web /usr/share/novnc 8080 localhost:5900 +autorestart = true + +[program:x11vnc] +command = x11vnc -shared -forever +autorestart = true + +[program:xvfb] +command = Xvfb +autorestart = true