Update Dockerfile
Browse files- Dockerfile +4 -22
Dockerfile
CHANGED
@@ -1,27 +1,9 @@
|
|
1 |
FROM ubuntu:latest
|
2 |
ENV DEBIAN_FRONTEND=noninteractive
|
3 |
-
|
4 |
-
|
5 |
-
aqemu \
|
6 |
-
sudo \
|
7 |
-
curl \
|
8 |
-
wget \
|
9 |
-
aria2 \
|
10 |
-
qemu-system-x86 \
|
11 |
-
htop \
|
12 |
-
firefox \
|
13 |
-
tigervnc-standalone-server \
|
14 |
-
python3-pip \
|
15 |
-
python3-websockify \
|
16 |
-
python3 \
|
17 |
-
git
|
18 |
-
|
19 |
RUN git clone https://github.com/novnc/noVNC.git /home/user/noVNC
|
20 |
-
RUN useradd -m -u 1000 user &&
|
21 |
-
usermod -aG sudo user && \
|
22 |
-
echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/user && \
|
23 |
-
chmod 0440 /etc/sudoers.d/user
|
24 |
RUN sudo chown -R user /home/user
|
25 |
-
ENV HOME=/home/user
|
26 |
-
PATH=/home/user/.local/bin:$PATH
|
27 |
CMD vncserver -SecurityTypes None -geometry 1366x768 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860
|
|
|
1 |
FROM ubuntu:latest
|
2 |
ENV DEBIAN_FRONTEND=noninteractive
|
3 |
+
ENV PACKAGES="lxde aqemu sudo curl wget aria2 qemu-system-x86 htop firefox tigervnc-standalone-server python3-pip python3-websockify python3 git"
|
4 |
+
RUN apt-get update && apt-get install -y $PACKAGES
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
RUN git clone https://github.com/novnc/noVNC.git /home/user/noVNC
|
6 |
+
RUN useradd -m -u 1000 user && usermod -aG sudo user && echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/user && chmod 0440 /etc/sudoers.d/user
|
|
|
|
|
|
|
7 |
RUN sudo chown -R user /home/user
|
8 |
+
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
|
|
|
9 |
CMD vncserver -SecurityTypes None -geometry 1366x768 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860
|