1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00

create docker-playwright-jwm

This commit is contained in:
Nebel 2022-07-12 19:04:45 +09:00
parent 9b46a8b08e
commit 509d81f06d
3 changed files with 40 additions and 0 deletions

View file

@ -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"]

View file

@ -0,0 +1,6 @@
services:
app:
image: kou029w/docker-playwright-jwm
build: "."
ipc: host
ports: ["8080:8080"]

View file

@ -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