Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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 |
-
#
|
| 5 |
-
|
| 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"]
|