COPY / / # buildkit |
LABEL org.opencontainers.image.authors=Kasm Tech "info@kasmweb.com" |
LABEL com.kasmweb.image=true |
LABEL com.kasmweb.gpu_acceleration_egl=nvidia |
ARG DISTRO=ubuntu |
ARG EXTRA_SH=noop.sh |
ARG LANG=en_US.UTF-8 |
ARG LANGUAGE=en_US:en |
ARG LC_ALL=en_US.UTF-8 |
ARG START_PULSEAUDIO=1 |
ARG START_XFCE4=1 |
ARG TZ=Etc/UTC |
ENV AUDIO_PORT=4901 DEBIAN_FRONTEND=noninteractive DISPLAY=:1 DISTRO=ubuntu GOMP_SPINCOUNT=0 HOME=/home/kasm-user INST_SCRIPTS=/dockerstartup/install KASMVNC_AUTO_RECOVER=true KASM_VNC_PATH=/usr/share/kasmvnc LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 LD_LIBRARY_PATH=/opt/libjpeg-turbo/lib64/:/usr/local/lib/ LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu:/usr/local/nvidia/lib:/usr/local/nvidia/lib64 MAX_FRAME_RATE=24 NO_VNC_PORT=6901 NVIDIA_DRIVER_CAPABILITIES=graphics,compat32,utility OMP_WAIT_POLICY=PASSIVE PULSE_RUNTIME_PATH=/var/run/pulse SDL_GAMECONTROLLERCONFIG=030000005e040000be02000014010000,XInput Controller,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b8,guide:b16,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:b12,dpdown:b13,dpleft:b14,dpright:b15,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7 SHELL=/bin/bash START_PULSEAUDIO=1 STARTUPDIR=/dockerstartup START_XFCE4=1 TERM=xterm VNC_COL_DEPTH=24 VNCOPTIONS=-PreferBandwidth -DynamicQualityMin=4 -DynamicQualityMax=7 -DLP_ClipDelay=0 VNC_PORT=5901 VNC_PORT=5901 VNC_PW=vncpassword VNC_RESOLUTION=1280x1024 VNC_RESOLUTION=1280x720 VNC_VIEW_ONLY_PW=vncviewonlypassword TZ=Etc/UTC |
EXPOSE map[4901/tcp:{} 5901/tcp:{} 6901/tcp:{}] |
WORKDIR /home/kasm-user |
USER 1000 |
ENTRYPOINT ["/dockerstartup/kasm_default_profile.sh" "/dockerstartup/vnc_startup.sh" "/dockerstartup/kasm_startup.sh"] |
CMD ["--wait"] |
USER root |
ENV HOME=/home/kasm-default-profile |
ENV STARTUPDIR=/dockerstartup |
ENV INST_SCRIPTS=/dockerstartup/install |
WORKDIR /home/kasm-default-profile |
RUN /bin/sh -c echo "kasm-user ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/kasm-user # buildkit |
RUN /bin/sh -c curl -fsSL https://tailscale.com/install.sh | sh # buildkit |
RUN /bin/sh -c chown 1000:0 $HOME # buildkit |
RUN /bin/sh -c $STARTUPDIR/set_user_permission.sh $HOME # buildkit |
ENV HOME=/home/kasm-user |
WORKDIR /home/kasm-user |
RUN /bin/sh -c mkdir -p $HOME && chown -R 1000:0 $HOME # buildkit |
USER 1000 |