diff options
| author | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-23 23:23:47 +0300 |
|---|---|---|
| committer | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-23 23:23:47 +0300 |
| commit | e2202eaf8a2acf4cc75837442424c3ede73d83e9 (patch) | |
| tree | e2db019e83bcb68954f34566d685a1d61a7c2f24 /Dockerfile | |
| parent | 4ef44ccacc8e622f7b63071d9b1e31426dfaa463 (diff) | |
Optimize Dockerfile
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -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 . . |
