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:
parent
9b46a8b08e
commit
509d81f06d
3 changed files with 40 additions and 0 deletions
16
docker-playwright-jwm/Dockerfile
Normal file
16
docker-playwright-jwm/Dockerfile
Normal 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"]
|
6
docker-playwright-jwm/compose.yml
Normal file
6
docker-playwright-jwm/compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: kou029w/docker-playwright-jwm
|
||||||
|
build: "."
|
||||||
|
ipc: host
|
||||||
|
ports: ["8080:8080"]
|
18
docker-playwright-jwm/supervisord.conf
Normal file
18
docker-playwright-jwm/supervisord.conf
Normal 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
|
Loading…
Add table
Reference in a new issue