Spaces:
Paused

File size: 916 Bytes
55dcab1
 
be44ad8
55dcab1
 
be44ad8
d60126a
55dcab1
d60126a
55dcab1
be44ad8
55dcab1
 
 
 
 
 
 
 
 
 
 
 
 
 
d60126a
 
 
 
55dcab1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Use Ubuntu as the base image
FROM ubuntu:20.04

# Set environment variables for non-interactive installation
ENV DEBIAN_FRONTEND=noninteractive

# Update package list and install sudo, git, and other basic utilities
RUN apt-get update && \
    apt-get install -y sudo curl wget vim nano git software-properties-common && \
    apt-get clean

# Create a user with sudo privileges
RUN useradd -m -s /bin/bash user && \
    echo "user:user" | chpasswd && \
    usermod -aG sudo user

# Allow the user to run sudo without a password
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user

# Set the user to 'user' to run commands (but still have sudo privileges)
USER user

# Set the working directory
WORKDIR /home/user

# Set up Git configuration
RUN git config --global user.email "geanzinho@users.noreply.huggingface.co" && \
    git config --global user.name "Gean"

# Start bash shell
CMD ["/bin/bash"]