ar08 commited on
Commit
f711b70
·
verified ·
1 Parent(s): cfcbe5b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -29,15 +29,15 @@ RUN useradd -m -s /bin/bash coder && \
29
  echo 'coder ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
30
 
31
  # Create and set the working directory
32
- RUN mkdir -p /home/coder/genz
33
- WORKDIR /home/coder/genz
34
-
35
- # Change ownership of the working directory
36
- RUN chown -R coder:coder /home/coder/genz
37
 
38
  # Clone the roop repository
39
- RUN git clone https://github.com/s0md3v/roop.git /home/coder/genz/roop
40
- RUN chown -R coder:coder /home/coder/genz/roop/*
 
 
 
41
 
42
  # Create code-server configuration directory
43
  RUN mkdir -p /home/coder/.local/share/code-server/User
@@ -58,9 +58,6 @@ RUN chown -R coder:coder /home/coder/.local/share/code-server
58
  # Expose the default code-server port
59
  EXPOSE 8080
60
 
61
- # Define a volume for the genz folder
62
- #VOLUME /home/coder/genz # Uncomment if you want to use a volume
63
-
64
  # Switch to the coder user for running code-server
65
  USER coder
66
  WORKDIR /home/coder/genz
 
29
  echo 'coder ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
30
 
31
  # Create and set the working directory
32
+ RUN mkdir -p /home/coder/genz/roop
33
+ WORKDIR /home/coder/genz/roop
 
 
 
34
 
35
  # Clone the roop repository
36
+ RUN git clone https://github.com/s0md3v/roop.git .
37
+
38
+ # Change ownership and permissions of the roop directory and its contents
39
+ RUN chown -R coder:coder /home/coder/genz/roop && \
40
+ chmod -R u+rwx /home/coder/genz/roop
41
 
42
  # Create code-server configuration directory
43
  RUN mkdir -p /home/coder/.local/share/code-server/User
 
58
  # Expose the default code-server port
59
  EXPOSE 8080
60
 
 
 
 
61
  # Switch to the coder user for running code-server
62
  USER coder
63
  WORKDIR /home/coder/genz