build: add docker runtime files
This commit is contained in:
parent
c44d330b43
commit
039791a2fe
2 changed files with 69 additions and 0 deletions
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
services:
|
||||
scanslicer:
|
||||
build:
|
||||
context: .
|
||||
image: scanslicer:latest
|
||||
user: "${UID:-1000}:${GID:-1000}"
|
||||
environment:
|
||||
HOME: /tmp
|
||||
XDG_CACHE_HOME: /tmp/.cache
|
||||
XDG_CONFIG_HOME: /tmp/.config
|
||||
XDG_RUNTIME_DIR: /tmp
|
||||
WAYLAND_DISPLAY: "${WAYLAND_DISPLAY:-wayland-0}"
|
||||
QT_QPA_PLATFORMTHEME: "${QT_QPA_PLATFORMTHEME:-gtk3}"
|
||||
DBUS_SESSION_BUS_ADDRESS: "unix:path=/tmp/bus"
|
||||
XDG_CURRENT_DESKTOP: "${XDG_CURRENT_DESKTOP:-}"
|
||||
GTK_THEME: "${GTK_THEME:-Adwaita:dark}"
|
||||
NO_AT_BRIDGE: "${NO_AT_BRIDGE:-1}"
|
||||
volumes:
|
||||
- ./:/work
|
||||
- ${HOME}:/host-home
|
||||
- scanslicer-cache:/tmp/.cache
|
||||
- ${XDG_RUNTIME_DIR:-/tmp}/${WAYLAND_DISPLAY:-wayland-0}:/tmp/${WAYLAND_DISPLAY:-wayland-0}
|
||||
- ${XDG_RUNTIME_DIR:-/tmp}/bus:/tmp/bus
|
||||
working_dir: /work
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
volumes:
|
||||
scanslicer-cache:
|
||||
Loading…
Add table
Add a link
Reference in a new issue