E-slam commited on
Commit
f33d183
·
verified ·
1 Parent(s): 9be2481

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -16,10 +16,10 @@ RUN chown -R appuser:appuser /code
16
  # Switch to the new user
17
  USER appuser
18
 
19
- # Pass the GitHub token as a build argument
20
- ARG GH_TOKEN
21
 
22
- # Clone the repository during the build process
23
  RUN git clone https://[email protected]/Eslam-Magdy-1297/ESearch_FletV01.git /code/ESearch_FletV01
24
 
25
  # Set the working directory to the cloned repository
 
16
  # Switch to the new user
17
  USER appuser
18
 
19
+ # Set the environment variable directly in the Dockerfile
20
+ ENV GH_TOKEN=gh_token
21
 
22
+ # Clone the repository using the environment variable for the token
23
  RUN git clone https://[email protected]/Eslam-Magdy-1297/ESearch_FletV01.git /code/ESearch_FletV01
24
 
25
  # Set the working directory to the cloned repository