leonsimon23 commited on
Commit
a89805b
·
verified ·
1 Parent(s): 054c489

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -7,16 +7,20 @@ WORKDIR /app
7
  # Install git
8
  RUN apt-get update && apt-get install -y git
9
 
10
- # Set up git with the provided token
11
- ARG GITHUB_TOKEN
12
- RUN --mount=type=secret,id=github_token,dst=/github_token \
13
- git config --global url."https://x-access-token:$(cat /github_token)@github.com/".insteadOf "https://github.com/"
14
 
15
  # Clone your private repository
16
- RUN --mount=type=secret,id=github_token git clone https://github.com/leoncool23/sci_xg_classify.git .
17
 
18
  # Install dependencies
19
  RUN pip install -r requirements.txt
20
 
21
  # Copy any other necessary files
22
- # COPY . .
 
 
 
 
 
 
 
7
  # Install git
8
  RUN apt-get update && apt-get install -y git
9
 
10
+ # Access the secret directly from the environment variable
11
+ RUN git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
 
 
12
 
13
  # Clone your private repository
14
+ RUN git clone https://github.com/leoncool23/sci_xg_classify.git .
15
 
16
  # Install dependencies
17
  RUN pip install -r requirements.txt
18
 
19
  # Copy any other necessary files
20
+ # COPY . .
21
+
22
+ # Expose the port your app runs on
23
+ EXPOSE 8080
24
+
25
+ # Command to run your app
26
+ CMD ["python", "app.py"]