likhonsheikh commited on
Commit
dc8a130
·
verified ·
1 Parent(s): 76cd0fc

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image: Ubuntu
2
+ FROM ubuntu:22.04
3
+
4
+ # Set timezone and avoid interaction
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+ RUN apt-get update && apt-get install -y \
7
+ sudo \
8
+ curl \
9
+ git \
10
+ python3 \
11
+ python3-pip \
12
+ vim \
13
+ net-tools \
14
+ iputils-ping \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Add a new user "likhon" with sudo privileges
18
+ RUN useradd -m likhon && echo "likhon:rootpassword" | chpasswd && adduser likhon sudo
19
+
20
+ # Switch to non-root user (optional for security)
21
+ USER likhon
22
+ WORKDIR /home/likhon
23
+
24
+ # Copy app code (if any)
25
+ COPY . /home/likhon/app
26
+
27
+ # Default command (sandbox terminal or server)
28
+ CMD ["bash"]