Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a base Debian image
|
| 2 |
+
FROM debian:latest
|
| 3 |
+
|
| 4 |
+
# Set non-interactive mode
|
| 5 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 6 |
+
|
| 7 |
+
# Install necessary packages
|
| 8 |
+
RUN apt-get update && \
|
| 9 |
+
apt-get install -y xfce4 xfce4-goodies tightvncserver novnc websockify && \
|
| 10 |
+
apt-get clean
|
| 11 |
+
|
| 12 |
+
# Expose ports for noVNC
|
| 13 |
+
EXPOSE 6080
|
| 14 |
+
|
| 15 |
+
# Start the VNC server and noVNC
|
| 16 |
+
CMD ["sh", "-c", "vncserver :1 -geometry 1280x720 -depth 24 && websockify --web=/usr/share/novnc/ 6080 localhost:5901"]
|