summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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
commite2202eaf8a2acf4cc75837442424c3ede73d83e9 (patch)
treee2db019e83bcb68954f34566d685a1d61a7c2f24 /Dockerfile
parent4ef44ccacc8e622f7b63071d9b1e31426dfaa463 (diff)
Optimize Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 3 insertions, 13 deletions
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 . .