Ramesh-vani commited on
Commit
159baa8
·
verified ·
1 Parent(s): 8f4d442

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -1,12 +1,10 @@
1
- # Start with a minimal Debian base image instead of scratch for better compatibility
2
  FROM debian:bookworm-slim
3
 
4
- # Set necessary environment variables
5
- ARG DEBCONF_NOWARNINGS="yes"
6
  ARG DEBIAN_FRONTEND="noninteractive"
7
- ARG DEBCONF_NONINTERACTIVE_SEEN="true"
8
 
9
- # Update and install required packages
10
  RUN apt-get update && \
11
  apt-get --no-install-recommends -y install \
12
  curl \
@@ -18,6 +16,7 @@ RUN apt-get update && \
18
  cabextract \
19
  genisoimage \
20
  libxml2-utils \
 
21
  tini && \
22
  apt-get clean && \
23
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@@ -33,10 +32,12 @@ COPY ./assets /run/assets
33
  ADD https://raw.githubusercontent.com/christgau/wsdd/master/src/wsdd.py /usr/sbin/wsdd
34
  ADD https://github.com/qemus/virtiso/releases/download/v0.1.240/virtio-win-0.1.240.iso /run/drivers.iso
35
 
36
- # Ensure necessary scripts have execute permissions
37
- RUN chmod +x /run/*.sh /usr/sbin/wsdd
 
 
38
 
39
- # Expose required ports
40
  EXPOSE 7860
41
 
42
  # Define a volume for storage
 
1
+ # Use a minimal Debian base image
2
  FROM debian:bookworm-slim
3
 
4
+ # Set non-interactive mode for package installation
 
5
  ARG DEBIAN_FRONTEND="noninteractive"
 
6
 
7
+ # Ensure we install sudo for privilege management
8
  RUN apt-get update && \
9
  apt-get --no-install-recommends -y install \
10
  curl \
 
16
  cabextract \
17
  genisoimage \
18
  libxml2-utils \
19
+ sudo \
20
  tini && \
21
  apt-get clean && \
22
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
32
  ADD https://raw.githubusercontent.com/christgau/wsdd/master/src/wsdd.py /usr/sbin/wsdd
33
  ADD https://github.com/qemus/virtiso/releases/download/v0.1.240/virtio-win-0.1.240.iso /run/drivers.iso
34
 
35
+ # Ensure necessary scripts have execute permissions and are owned by root
36
+ RUN chmod +x /run/*.sh /usr/sbin/wsdd && \
37
+ chmod 755 /run/entry.sh && \
38
+ chown root:root /run/entry.sh
39
 
40
+ # Expose necessary ports
41
  EXPOSE 7860
42
 
43
  # Define a volume for storage