From e2202eaf8a2acf4cc75837442424c3ede73d83e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=96=D1=83=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= <33721692+LeaveMyYard@users.noreply.github.com> Date: Tue, 23 May 2023 23:23:47 +0300 Subject: Optimize Dockerfile --- Dockerfile | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 56a182f..690c80d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,22 +6,12 @@ WORKDIR /app # Install system dependencies required for Poetry RUN apt-get update && \ - apt-get install --no-install-recommends -y curl && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* + dpkg --add-architecture arm64 -# Install Poetry -RUN curl -sSL https://install.python-poetry.org | python - - -# Add Poetry to the PATH -ENV PATH="/root/.local/bin:${PATH}" - -# Copy the pyproject.toml files -COPY pyproject.toml ./ +COPY ./requirements.txt requirements.txt # Install the project dependencies -RUN poetry config virtualenvs.create false \ - && poetry install --no-dev --no-interaction --no-ansi --no-root +RUN pip install -r requirements.txt # Copy the rest of the application code COPY . . -- cgit v1.2.3