Spaces:
Sleeping
Sleeping
Commit
·
43d68ea
1
Parent(s):
68d42d5
Update Dockerfile
Browse files- Dockerfile +14 -47
Dockerfile
CHANGED
|
@@ -1,53 +1,20 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
MAINTAINER SFoxDev <admin@sfoxdev.com>
|
| 3 |
|
| 4 |
-
|
| 5 |
-
DEBIAN_FRONTEND="noninteractive" \
|
| 6 |
-
LC_ALL="C.UTF-8" \
|
| 7 |
-
LANG="en_US.UTF-8" \
|
| 8 |
-
LANGUAGE="en_US.UTF-8"
|
| 9 |
|
| 10 |
-
|
| 11 |
-
RUN
|
| 12 |
-
echo "deb http://dl.google.com/linux/chrome-remote-desktop/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list ; \
|
| 13 |
-
apt-key add /tmp/linux_signing_key.pub ; \
|
| 14 |
-
apt-get update ; \
|
| 15 |
-
apt-get install -y \
|
| 16 |
-
google-chrome-stable \
|
| 17 |
-
chrome-remote-desktop \
|
| 18 |
-
fonts-takao \
|
| 19 |
-
pulseaudio \
|
| 20 |
-
supervisor \
|
| 21 |
-
x11vnc \
|
| 22 |
-
fluxbox \
|
| 23 |
-
mc \
|
| 24 |
-
xfce4 \
|
| 25 |
-
xrdp ; \
|
| 26 |
-
apt-get clean ; \
|
| 27 |
-
rm -rf /var/cache/* /var/log/apt/* /var/lib/apt/lists/* /tmp/*
|
| 28 |
|
| 29 |
-
RUN
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
ln -s /crdonly /usr/local/sbin/crdonly ; \
|
| 33 |
-
ln -s /update /usr/local/sbin/update ; \
|
| 34 |
-
mkdir -p /home/chrome/.config/chrome-remote-desktop ; \
|
| 35 |
-
mkdir -p /home/chrome/.fluxbox ; \
|
| 36 |
-
echo ' \n\
|
| 37 |
-
session.screen0.toolbar.visible: false\n\
|
| 38 |
-
session.screen0.fullMaximization: true\n\
|
| 39 |
-
session.screen0.maxDisableResize: true\n\
|
| 40 |
-
session.screen0.maxDisableMove: true\n\
|
| 41 |
-
session.screen0.defaultDeco: NONE\n\
|
| 42 |
-
' >> /home/chrome/.fluxbox/init ; \
|
| 43 |
-
chown -R chrome:chrome /home/chrome/.config /home/chrome/.fluxbox
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
| 52 |
-
|
| 53 |
-
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
|
|
|
| 1 |
+
FROM gitpod/openvscode-server:latest
|
|
|
|
| 2 |
|
| 3 |
+
USER root
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y sudo && apt-get install -y python3-pip && pip3 install --upgrade pip
|
| 6 |
+
RUN apt-get install -y curl gnupg wget htop sudo git git-lfs software-properties-common build-essential libgl1 zip unzip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
RUN add-apt-repository ppa:flexiondotorg/nvtop
|
| 9 |
+
RUN apt-get upgrade -y
|
| 10 |
+
RUN apt-get install -y nvtop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
+
RUN pip3 install pandas scipy matplotlib && \
|
| 13 |
+
pip3 install ipywidgets && \
|
| 14 |
+
pip3 install torch torchvision torchaudio
|
| 15 |
+
|
| 16 |
+
USER openvscode-server
|
| 17 |
|
| 18 |
+
EXPOSE 7860
|
| 19 |
|
| 20 |
+
ENTRYPOINT [ "/bin/sh", "-c", "exec ${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server --host 0.0.0.0 --port 7860 --without-connection-token \"${@}\"", "--" ]
|
|
|
|
|
|
|
|
|
|
|
|