mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-18 01:36:21 +00:00
25 lines
611 B
Docker
25 lines
611 B
Docker
# syntax = docker/dockerfile:1.2
|
|
FROM alpine/base
|
|
USER root
|
|
|
|
# X session environment variable
|
|
ENV STARTXBIN startplasma-x11
|
|
|
|
# Run
|
|
RUN apk add --no-cache \
|
|
tigervnc \
|
|
plasma-desktop-meta \
|
|
font-dejavu \
|
|
firefox \
|
|
&& printf '%s\n' 'permit nopass user as root cmd /sbin/apk add' >>/etc/doas.conf
|
|
|
|
# configure nvidia container runtime
|
|
# https://github.com/NVIDIA/nvidia-container-runtime#environment-variables-oci-spec
|
|
ENV NVIDIA_VISIBLE_DEVICES all
|
|
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
|
|
|
|
# Tigervnc initialization scripts
|
|
COPY *.sh /app/init.d/
|
|
|
|
# Reset user home directory
|
|
USER user
|