Spaces:
Sleeping
Sleeping
Eslam Magdy
commited on
Update Dockerfile
Browse files- 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 |
-
#
|
| 20 |
-
|
| 21 |
|
| 22 |
-
# Clone the repository
|
| 23 |
RUN git clone https://$GH_TOKEN@github.com/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://$GH_TOKEN@github.com/Eslam-Magdy-1297/ESearch_FletV01.git /code/ESearch_FletV01
|
| 24 |
|
| 25 |
# Set the working directory to the cloned repository
|