FROM nvidia/cuda:11.3.1-base-ubuntu20.04 ENV DEBIAN_FRONTEND=noninteractive \ TZ=Europe/Paris # Install some basic utilities RUN rm -f /etc/apt/sources.list.d/*.list && \ apt-get update && apt-get install -y \ curl \ sudo \ && rm -rf /var/lib/apt/lists/* RUN \ cd /tmp \ curl -O \ https://kasm-static-content.s3.amazonaws.com/kasm_release_1.12.0.d4fd8a.tar.gz \ tar -xf kasm_release_1.12.0.d4fd8a.tar.gz \ echo "**** clean up ****" && \ apt-get clean && \ rm -rf \ /tmp/* \ /var/lib/apt/lists/* \ /var/tmp/* # Create a working directory WORKDIR /app # Run the install script RUN sudo bash install.sh --accept-eula --swap-size 4096 # Expose the port that kasm listens on EXPOSE 8080 # Run kasm when the container starts CMD ["kasm"]