Commit aee745d1 authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent 940e64b7
No related merge requests found
Pipeline #10739 failed with stages
in 36 seconds
Showing with 12 additions and 9 deletions
+12 -9
......@@ -12,15 +12,18 @@ ENV PATH="/opt/myenv/bin:$PATH"
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir Flask && \
pip install --no-cache-dir matplotlib && \
pip install --no-cache-dir scikit-learn && \
pip install --no-cache-dir transformers && \
pip install --no-cache-dir pandas && \
pip install --no-cache-dir sentence_transformers && \
pip install --no-cache-dir --upgrade setuptools wheel
RUN rm -rf /root/.cache/pip
RUN pip install --no-cache-dir Flask matplotlib scikit-learn transformers pandas sentence_transformers && \
pip install --no-cache-dir --upgrade setuptools wheel && \
rm -rf /root/.cache/pip \
#RUN pip install --no-cache-dir Flask && \
# pip install --no-cache-dir matplotlib && \
# pip install --no-cache-dir scikit-learn && \
# pip install --no-cache-dir transformers && \
# pip install --no-cache-dir pandas && \
# pip install --no-cache-dir sentence_transformers && \
# pip install --no-cache-dir --upgrade setuptools wheel
#RUN rm -rf /root/.cache/pip
FROM pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment