-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
44 lines (38 loc) · 1.09 KB
/
dockerfile
File metadata and controls
44 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Use a minimal base image
FROM alpine:edge
# Set environment variables
ENV DISPLAY=:0 \
VNC_RESOLUTION=1024x768 \
STARTING_WEBSITE_URL=https://www.google.com
# Install necessary packages and setup noVNC
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add --no-cache \
xvfb \
x11vnc \
tini \
supervisor \
bash \
fluxbox \
python3 py3-pip thonny \
novnc \
websockify \
ttf-dejavu \
ttf-freefont \
fontconfig \
freetype \
cairo && \
ln -s /usr/share/novnc/vnc_lite.html /usr/share/novnc/index.html && \
fc-cache -f -v
# Copy configuration files
COPY supervisord.conf /etc/supervisord.conf
COPY entrypoint.sh /entrypoint.sh
# Make the entrypoint script executable
RUN chmod +x /entrypoint.sh
# Expose VNC and noVNC ports
EXPOSE 5901 6901
# Set tini as the entrypoint and the custom script as the command
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/entrypoint.sh"]