thewise commited on
Commit
da7a8d5
·
verified ·
1 Parent(s): 2935382

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -4,6 +4,9 @@ RUN apt-get update && apt-get install -y build-essential curl git && rm -rf /var
4
 
5
  WORKDIR /app
6
 
 
 
 
7
  # Create the github_repo directory
8
  RUN mkdir /app/github_repo
9
 
@@ -11,10 +14,6 @@ RUN mkdir /app/github_repo
11
  RUN chmod -R 755 /app/github_repo && \
12
  chown -R user:user /app/github_repo
13
 
14
-
15
- # Create non-root user
16
- RUN useradd -m -u 1000 user
17
-
18
  # Switch to the non-root user
19
  USER user
20
 
 
4
 
5
  WORKDIR /app
6
 
7
+ # Create non-root user
8
+ RUN useradd -m -u 1000 user
9
+
10
  # Create the github_repo directory
11
  RUN mkdir /app/github_repo
12
 
 
14
  RUN chmod -R 755 /app/github_repo && \
15
  chown -R user:user /app/github_repo
16
 
 
 
 
 
17
  # Switch to the non-root user
18
  USER user
19