mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-09 18:02:22 +01:00
Modifying docker file
This commit is contained in:
parent
a44bf93513
commit
3aa48e9eda
1 changed files with 18 additions and 1 deletions
19
Dockerfile
19
Dockerfile
|
|
@ -112,7 +112,10 @@ RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirr
|
|||
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
|
||||
&& apt-get install -y --no-install-recommends ca-certificates
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends curl gnupg patch
|
||||
|
||||
# nodejs
|
||||
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||
|
|
@ -177,3 +180,17 @@ RUN apt -y remove thunar
|
|||
# Copy files
|
||||
COPY rootfs /
|
||||
RUN rm -rf /workspace/*
|
||||
|
||||
|
||||
RUN useradd -d /home/ubuntu -u 99 -G sudo -ms /bin/bash ubuntu
|
||||
#RUN adduser ubuntu sudo
|
||||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||
RUN chown ubuntu:ubuntu /home/ubuntu
|
||||
|
||||
# Install from user (not doing)
|
||||
USER ubuntu
|
||||
CMD /bin/bash
|
||||
|
||||
RUN bash /cloud9/user-install.sh
|
||||
|
||||
user root
|
||||
Loading…
Reference in a new issue