Refactor module structure and improve Docker configuration
Reorganized module directories under `phoenix_technologies` for better namespace clarity and maintainability. Updated the Dockerfile to use an environment variable for the application entry point, enhancing flexibility in deployment. Additionally, revamped the README to reflect the new structure and provide clearer project documentation.
This commit is contained in:
parent
6bab336883
commit
eec1b34517
7 changed files with 117 additions and 67 deletions
|
@ -4,6 +4,9 @@ FROM python:3.13-slim
|
|||
# Set environment variable for Python
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
# Use an environment variable to define the script path
|
||||
ENV APP_ENTRYPOINT "/app/mcp/gpt_researcher/server.py"
|
||||
|
||||
|
||||
# Set working directory within the container
|
||||
WORKDIR /app
|
||||
|
@ -22,4 +25,4 @@ COPY src/ /app/
|
|||
EXPOSE 8000
|
||||
|
||||
# Set the default command to run the app with `uvicorn`
|
||||
CMD ["python", "server.py"]
|
||||
CMD ["python", "$APP_ENTRYPOINT"]
|
Loading…
Add table
Add a link
Reference in a new issue