This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
forked from theasp/docker-novnc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
FROM alpine:3.5 | ||
FROM debian:stretch | ||
|
||
# Setup demo environment variables | ||
ENV HOME=/root \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
LANG=en_US.UTF-8 \ | ||
LANGUAGE=en_US.UTF-8 \ | ||
LC_ALL=C.UTF-8 \ | ||
DISPLAY=:0.0 \ | ||
DISPLAY_WIDTH=1024 \ | ||
DISPLAY_HEIGHT=768 | ||
DEBIAN_FRONTEND=noninteractive \ | ||
LANG=en_US.UTF-8 \ | ||
LANGUAGE=en_US.UTF-8 \ | ||
LC_ALL=C.UTF-8 \ | ||
DISPLAY=:0.0 \ | ||
DISPLAY_WIDTH=1024 \ | ||
DISPLAY_HEIGHT=768 | ||
|
||
# Install git, supervisor, VNC, & X11 packages | ||
RUN apk --update --upgrade add \ | ||
bash \ | ||
fluxbox \ | ||
git \ | ||
socat \ | ||
supervisor \ | ||
x11vnc \ | ||
xterm \ | ||
xvfb | ||
RUN set -ex; \ | ||
apt-get update; \ | ||
apt-get install -y \ | ||
bash \ | ||
fluxbox \ | ||
git \ | ||
socat \ | ||
supervisor \ | ||
x11vnc \ | ||
xterm \ | ||
xvfb | ||
|
||
# Clone noVNC from github | ||
RUN git clone https://github.com/kanaka/noVNC.git /root/noVNC \ | ||
&& git clone https://github.com/kanaka/websockify /root/noVNC/utils/websockify \ | ||
&& rm -rf /root/noVNC/.git \ | ||
&& rm -rf /root/noVNC/utils/websockify/.git \ | ||
&& apk del git | ||
|
||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
RUN set -ex; \ | ||
git clone https://github.com/kanaka/noVNC.git /root/noVNC; \ | ||
git clone https://github.com/kanaka/websockify /root/noVNC/utils/websockify; \ | ||
rm -rf /root/noVNC/.git; \ | ||
rm -rf /root/noVNC/utils/websockify/.git; \ | ||
apt-get remove -y --purge git | ||
|
||
# Modify the launch script 'ps -p' | ||
RUN sed -i -- "s/ps -p/ps -o pid | grep/g" /root/noVNC/utils/launch.sh | ||
|
||
EXPOSE 8080 | ||
COPY . /app | ||
|
||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] | ||
CMD ["/usr/bin/supervisord", "-c", "/app/supervisord.conf"] | ||
EXPOSE 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters