ULALA1243 commited on
Commit
2f93ae0
·
verified ·
1 Parent(s): 5dc9a5a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -14,11 +14,15 @@ RUN pip3 install flask flask_restful
14
  # Install playwright python package and the browsers
15
  RUN pip3 install playwright
16
  RUN playwright install
 
 
 
17
  ENV GITHUB_TOKEN=${GITHUB_TOKEN}
18
 
19
- # Clone the repository
20
- RUN git clone https://${GITHUB_TOKEN}@github.com/UrloMythus/Mysterious.git
21
- # Optionally copy Readme.md from local (if needed)
 
22
  COPY README.md /app/README.md
23
 
24
  # Make port 8080 available to the world outside this container
 
14
  # Install playwright python package and the browsers
15
  RUN pip3 install playwright
16
  RUN playwright install
17
+
18
+ # Set the environment variable for GitHub token
19
+ ARG GITHUB_TOKEN
20
  ENV GITHUB_TOKEN=${GITHUB_TOKEN}
21
 
22
+ # Clone the repository using the GitHub token
23
+ RUN git clone https://${GITHUB_TOKEN}@github.com/UrloMythus/Mysterious.git .
24
+
25
+ # Copy README.md from local (adjust path if needed)
26
  COPY README.md /app/README.md
27
 
28
  # Make port 8080 available to the world outside this container