Update Dockerfile
Browse files- Dockerfile +10 -5
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|
| 4 |
ENV USER=root
|
| 5 |
ENV PASSWORD=root
|
| 6 |
|
| 7 |
-
# ----
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
xfce4 \
|
| 10 |
xfce4-goodies \
|
|
@@ -16,15 +16,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 16 |
git \
|
| 17 |
neovim \
|
| 18 |
htop \
|
|
|
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
-
# ---- Install code-server ----
|
| 22 |
-
RUN curl -
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# ---- Root password ----
|
| 25 |
RUN echo "$USER:$PASSWORD" | chpasswd
|
| 26 |
|
| 27 |
-
# ---- XRDP
|
| 28 |
RUN echo "startxfce4" > /root/.xsession
|
| 29 |
RUN sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
|
| 30 |
|
|
@@ -35,4 +40,4 @@ EXPOSE 7860 3390
|
|
| 35 |
CMD bash -c "\
|
| 36 |
service dbus start && \
|
| 37 |
service xrdp start && \
|
| 38 |
-
code-server --bind-addr 0.0.0.0:7860 --auth none"
|
|
|
|
| 4 |
ENV USER=root
|
| 5 |
ENV PASSWORD=root
|
| 6 |
|
| 7 |
+
# ---- Base + Desktop + XRDP ----
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
xfce4 \
|
| 10 |
xfce4-goodies \
|
|
|
|
| 16 |
git \
|
| 17 |
neovim \
|
| 18 |
htop \
|
| 19 |
+
ca-certificates \
|
| 20 |
&& rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
+
# ---- Install code-server (manual stable way) ----
|
| 23 |
+
RUN curl -fL https://github.com/coder/code-server/releases/latest/download/code-server-linux-amd64.tar.gz -o code-server.tar.gz \
|
| 24 |
+
&& tar -xzf code-server.tar.gz \
|
| 25 |
+
&& mv code-server-*-linux-amd64 /usr/lib/code-server \
|
| 26 |
+
&& ln -s /usr/lib/code-server/bin/code-server /usr/bin/code-server \
|
| 27 |
+
&& rm code-server.tar.gz
|
| 28 |
|
| 29 |
# ---- Root password ----
|
| 30 |
RUN echo "$USER:$PASSWORD" | chpasswd
|
| 31 |
|
| 32 |
+
# ---- XRDP config ----
|
| 33 |
RUN echo "startxfce4" > /root/.xsession
|
| 34 |
RUN sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
|
| 35 |
|
|
|
|
| 40 |
CMD bash -c "\
|
| 41 |
service dbus start && \
|
| 42 |
service xrdp start && \
|
| 43 |
+
/usr/bin/code-server --bind-addr 0.0.0.0:7860 --auth none"
|