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

Fix Dockerfile python version and dependencies installation #500

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

gabrielgaraujo
Copy link
Contributor

Problem: The Docker configuration for running norminette is not working out of the box.

  • Following PR #380, the minimum required version of Python is 3.8, but the Docker container was using Python 3.7.
  • Dependencies are now managed by Poetry instead of a plain requirements.txt file (which has been removed, yet still referenced in the Dockerfile).
  • Running the command stated in the README creates a new container each time, leaving unused containers behind.

Solution:

  • Updated the Python version in the Dockerfile to the latest stable version (3.12).
  • Updated the Dockerfile to use Poetry for dependency management.
  • Added the --rm flag to the Docker run command in the README to automatically remove the container after execution.

Copy link
Contributor

@Ourobore Ourobore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me. Thanks for the update

@Ourobore Ourobore merged commit da368aa into 42School:master Jun 20, 2024
4 checks passed
@gabrielgaraujo gabrielgaraujo deleted the garaujo branch June 28, 2024 06:44
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.

2 participants