Spaces:
Paused
Paused
BinaryONe
commited on
Commit
·
2c76eb6
1
Parent(s):
15d9364
Changes
Browse files- Dockerfile +15 -1
Dockerfile
CHANGED
|
@@ -3,7 +3,18 @@ FROM ubuntu:latest
|
|
| 3 |
|
| 4 |
# Update package list, install required packages, and clean up
|
| 5 |
RUN apt-get update && \
|
| 6 |
-
apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
apt-get clean && \
|
| 8 |
rm -rf /var/lib/apt/lists/*
|
| 9 |
|
|
@@ -16,6 +27,9 @@ RUN useradd -m -s /bin/bash admin && \
|
|
| 16 |
# Grant full sudo access to the 'administrator' group
|
| 17 |
RUN echo "%administrator ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 18 |
|
|
|
|
|
|
|
|
|
|
| 19 |
# Switch to 'admin' user and set working directory
|
| 20 |
USER admin
|
| 21 |
WORKDIR /home/admin
|
|
|
|
| 3 |
|
| 4 |
# Update package list, install required packages, and clean up
|
| 5 |
RUN apt-get update && \
|
| 6 |
+
apt-get install -y \
|
| 7 |
+
sudo \
|
| 8 |
+
passwd \
|
| 9 |
+
openssh-server \
|
| 10 |
+
openssh\
|
| 11 |
+
sudo \
|
| 12 |
+
bash \
|
| 13 |
+
python3 \
|
| 14 |
+
python3-pip \
|
| 15 |
+
python3-venv \
|
| 16 |
+
net-tools && \
|
| 17 |
+
apt clean && \
|
| 18 |
apt-get clean && \
|
| 19 |
rm -rf /var/lib/apt/lists/*
|
| 20 |
|
|
|
|
| 27 |
# Grant full sudo access to the 'administrator' group
|
| 28 |
RUN echo "%administrator ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 29 |
|
| 30 |
+
# Copy the application code to the container
|
| 31 |
+
COPY . /app
|
| 32 |
+
|
| 33 |
# Switch to 'admin' user and set working directory
|
| 34 |
USER admin
|
| 35 |
WORKDIR /home/admin
|