Charan5775 commited on
Commit
b47c174
·
verified ·
1 Parent(s): 4f5605c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:20.04
2
+
3
+ # Set environment variables to allow non-interactive installation
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # Install necessary dependencies
7
+ RUN apt-get update && apt-get install -y \
8
+ curl \
9
+ sudo \
10
+ wget
11
+
12
+ # Create a non-root user and add it to the sudo group
13
+ RUN useradd -m -s /bin/bash -G sudo user && \
14
+ echo "user:user" | chpasswd
15
+
16
+ # Switch to the non-root user
17
+ USER user
18
+ WORKDIR /home/user
19
+
20
+ # Download and extract Kasm
21
+ RUN wget https://kasm-static-content.s3.amazonaws.com/kasm_release_1.14.0.652298.tar.gz && \
22
+ tar -xf kasm_release_1.14.0.652298.tar.gz
23
+
24
+ # Expose the Kasm web interface port
25
+ EXPOSE 3000
26
+
27
+ # Start the Kasm installation
28
+ CMD ["sudo", "/home/user/kasm_release/install.sh"]