E-slam commited on
Commit
be1fd10
·
verified ·
1 Parent(s): 6469dd0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -24,8 +24,8 @@ WORKDIR /code
24
  COPY --from=builder /code /code
25
 
26
  # Set environment variable for GitHub token (replace with your actual token)
27
- ARG GH_TOKEN
28
- ENV gh_token=${GH_TOKEN}
29
 
30
  # Clone your repository using the token
31
  RUN url_with_token="https://[email protected]/yourusername/your-repo.git" && \
@@ -37,5 +37,8 @@ WORKDIR /code
37
  # Install remaining dependencies (if any)
38
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
39
 
 
 
 
40
  # Command to run your application
41
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
24
  COPY --from=builder /code /code
25
 
26
  # Set environment variable for GitHub token (replace with your actual token)
27
+ ARG gh_token
28
+ ENV gh_token=${gh_token}
29
 
30
  # Clone your repository using the token
31
  RUN url_with_token="https://[email protected]/yourusername/your-repo.git" && \
 
37
  # Install remaining dependencies (if any)
38
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
39
 
40
+ # Expose the port
41
+ EXPOSE 7860
42
+
43
  # Command to run your application
44
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]