diff --git a/flask_ml_api/Dockerfile b/flask_ml_api/Dockerfile
index 57c59de1ad944288b6ab47420aa4b93c5664a04e..4c16d3f9afb899b0c151c6b85f78eefd13e45543 100755
--- a/flask_ml_api/Dockerfile
+++ b/flask_ml_api/Dockerfile
@@ -1,5 +1,4 @@
 FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
-FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
 
 RUN apt-get update && apt-get install -y --no-install-recommends \
     build-essential python3-venv && \
@@ -13,11 +12,9 @@ WORKDIR /app
 COPY . /app
 
 RUN pip install --no-cache-dir Flask matplotlib scikit-learn transformers pandas sentence_transformers && \
-    pip install --no-cache-dir --upgrade setuptools wheel
-
-RUN rm -rf /root/.cache/pip
+    pip install --no-cache-dir --upgrade setuptools wheel && \
+    rm -rf /root/.cache/pip
 
-# Настройка прав
 RUN chown -R www-data:www-data /app && chmod -R 755 /app
 
 EXPOSE 5000