theonlykid commited on
Commit
564e1cb
·
verified ·
1 Parent(s): f6eb4a8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,9 +1,11 @@
1
  # Use the official Ubuntu image as a base image
2
  FROM ubuntu:latest
3
 
4
- # Update the package list and install necessary packages
5
- RUN apt-get update && apt-get install -y \
6
- sudo
7
 
 
 
 
8
  # Run the whoami command as root
9
  CMD ["whoami"]
 
1
  # Use the official Ubuntu image as a base image
2
  FROM ubuntu:latest
3
 
4
+ # Set the working directory (optional)
5
+ WORKDIR /root
 
6
 
7
+ # Update the package list and install necessary packages
8
+ RUN apt-get update
9
+ RUN sudo
10
  # Run the whoami command as root
11
  CMD ["whoami"]