Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Huggingface codespace noninteractive Dockerfile #408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ProjectZeroDays
Copy link

@ProjectZeroDays ProjectZeroDays commented Jan 27, 2025

Add a new huggingface.Dockerfile for Huggingface codespace noninteractive setup.

  • Base Image: Use FROM python:3.9 as the base image.
  • User Setup: Add a non-root user with useradd -m -u 1000 user, set the user to user, and update the PATH environment variable.
  • Working Directory: Set the working directory to /app.
  • Dependencies: Copy requirements.txt and install dependencies with pip.
  • Application Code: Copy the rest of the application code and set the command to run uvicorn.

For more details, open the Copilot Workspace session.

Add a new `huggingface.Dockerfile` for Huggingface codespace noninteractive setup.

* **Base Image**: Use `FROM python:3.9` as the base image.
* **User Setup**: Add a non-root user with `useradd -m -u 1000 user`, set the user to `user`, and update the `PATH` environment variable.
* **Working Directory**: Set the working directory to `/app`.
* **Dependencies**: Copy `requirements.txt` and install dependencies with `pip`.
* **Application Code**: Copy the rest of the application code and set the command to run `uvicorn`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ElricLiu/AutoGPT-Next-Web?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant