Azeez98 commited on
Commit
8cf70f6
·
verified ·
1 Parent(s): e70bfb6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,9 +1,9 @@
1
  FROM ubuntu:20.04
2
 
3
- # Set the DEBIAN_FRONTEND to noninteractive to avoid interactive prompts during package installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Update package lists and install necessary packages, with --fix-missing option
7
  RUN apt-get update && apt-get install -y --fix-missing \
8
  tzdata \
9
  x11vnc \
@@ -12,6 +12,7 @@ RUN apt-get update && apt-get install -y --fix-missing \
12
  lxterminal \
13
  tightvncserver \
14
  wget \
 
15
  && apt-get clean
16
 
17
  # Set the timezone to UTC (or your preferred timezone)
@@ -21,7 +22,7 @@ RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo "UTC" > /etc/timezone
21
  RUN mkdir -p /opt/novnc && \
22
  wget -qO- https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0.tar.gz | tar xz --strip 1 -C /opt/novnc
23
 
24
- # Expose ports
25
  EXPOSE 6080
26
 
27
  # Start VNC and noVNC
 
1
  FROM ubuntu:20.04
2
 
3
+ # Set DEBIAN_FRONTEND to noninteractive to avoid interactive prompts during package installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Update and fix broken packages, then install necessary packages
7
  RUN apt-get update && apt-get install -y --fix-missing \
8
  tzdata \
9
  x11vnc \
 
12
  lxterminal \
13
  tightvncserver \
14
  wget \
15
+ && apt-get install -y --fix-broken \
16
  && apt-get clean
17
 
18
  # Set the timezone to UTC (or your preferred timezone)
 
22
  RUN mkdir -p /opt/novnc && \
23
  wget -qO- https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0.tar.gz | tar xz --strip 1 -C /opt/novnc
24
 
25
+ # Expose the necessary port for noVNC
26
  EXPOSE 6080
27
 
28
  # Start VNC and noVNC