From 235bdcebd20a6be814b2f9cea75208afeeca24db Mon Sep 17 00:00:00 2001 From: Gabriel Araujo Date: Wed, 19 Jun 2024 11:36:38 +0200 Subject: [PATCH] Fix Dockerfile python version and dependencies installation --- Dockerfile | 11 ++++++++--- README.md | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 89ea4d4b..369b1533 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,16 @@ -FROM python:3.7-alpine +FROM python:3.12-alpine WORKDIR /usr/src/norminette +COPY pyproject.toml poetry.lock ./ + +RUN pip3 install poetry \ + && poetry config virtualenvs.create false \ + && poetry install --no-dev + COPY . . -RUN pip3 install -r requirements.txt \ - && python3 setup.py install +RUN python3 setup.py install WORKDIR /code diff --git a/README.md b/README.md index b4c47c05..686e793a 100644 --- a/README.md +++ b/README.md @@ -67,13 +67,13 @@ norminette -dd ``` docker build -t norminette . cd ~/42/ft_printf -docker run -v $PWD:/code norminette /code +docker run --rm -v $PWD:/code norminette ``` If you encounter an error or an incorrect output, you can: - - Open an issue on github + - Open an issue on github - Post a message on the dedicated slack channel (#norminette-v3-beta) - + Please try to include as much information as possible (the file on which it crashed, etc)