Skip to content

Create a Huggingface codespace noninteractive Dockerfile#408

Open
ProjectZeroDays wants to merge 1 commit intoElricLiu:mainfrom
ProjectZeroDays:add-huggingface-dockerfile
Open

Create a Huggingface codespace noninteractive Dockerfile#408
ProjectZeroDays wants to merge 1 commit intoElricLiu:mainfrom
ProjectZeroDays:add-huggingface-dockerfile

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