Retour à pip install au lieu de Poetry
This commit is contained in:
parent
2a7b056698
commit
a5403db464
11 changed files with 158 additions and 3958 deletions
|
@ -17,21 +17,14 @@ RUN apt-get -y update && apt-get install -y \
|
|||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Poetry
|
||||
RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||
|
||||
# Add Poetry to PATH
|
||||
ENV PATH="/root/.local/bin:$PATH"
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy only pyproject.toml and poetry.lock (if it exists)
|
||||
COPY pyproject.toml poetry.lock* ./
|
||||
# Copier les fichiers de configuration de Poetry
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install project dependencies
|
||||
RUN poetry config virtualenvs.create false \
|
||||
&& poetry install --no-interaction --no-ansi
|
||||
# Installer les dépendances
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Policy for ImageMagick
|
||||
COPY conf/policy.xml /etc/ImageMagick-6/policy.xml
|
||||
|
@ -49,4 +42,4 @@ COPY *.py .
|
|||
COPY *.lua .
|
||||
|
||||
# Run the application
|
||||
CMD ["poetry", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
|
Loading…
Add table
Add a link
Reference in a new issue