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

Add Dockerfile for containerization #59

Closed
wants to merge 1 commit into from

Conversation

thedemonsid
Copy link

@thedemonsid thedemonsid commented Oct 22, 2024

Fixes #58

Add a Dockerfile for containerizing the application.

  • Dockerfile

    • Use the official Python 3.9 base image.
    • Set the working directory to /app.
    • Copy the requirements.txt file to the container.
    • Install the dependencies using pip.
    • Copy the rest of the application code to the container.
    • Set environment variables using the ENV instruction.
    • Define the command to run the FastAPI application using CMD.
  • README.md

    • Add instructions on how to build the Docker image.
    • Add instructions on how to run the Docker container.

For more details, open the Copilot Workspace session.

Fixes #58

Add a Dockerfile for containerizing the application.

* **Dockerfile**
  - Use the official Python 3.9 base image.
  - Set the working directory to `/app`.
  - Copy the `requirements.txt` file to the container.
  - Install the dependencies using `pip`.
  - Copy the rest of the application code to the container.
  - Set environment variables using the `ENV` instruction.
  - Define the command to run the FastAPI application using `CMD`.

* **README.md**
  - Add instructions on how to build the Docker image.
  - Add instructions on how to run the Docker container.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/avantifellows/portal-backend/issues/58?shareId=XXXX-XXXX-XXXX-XXXX).
@thedemonsid thedemonsid closed this by deleting the head repository Oct 29, 2024
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.

Missing Dockerfile for Containerization
1 participant