Spaces:
Running
Running
Update Dockerfile
Browse files- 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
|
28 |
-
ENV 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"]
|