Commit 3e0bde72 authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent 393f9b4f
Pipeline #10580 failed with stage
in 2 minutes and 20 seconds
......@@ -16,14 +16,14 @@ COPY . /app
COPY ./asyst /app/asyst
# Install dependencies in separate steps to reduce memory usage
RUN /opt/myenv/bin/pip install torch \
&& /opt/myenv/bin/pip install Flask \
&& /opt/myenv/bin/pip install matplotlib \
&& /opt/myenv/bin/pip install scikit-learn \
&& /opt/myenv/bin/pip install transformers \
&& /opt/myenv/bin/pip install pandas \
&& /opt/myenv/bin/pip install sentence_transformers \
&& /opt/myenv/bin/python3 -m pip install --upgrade setuptools wheel
RUN /opt/myenv/bin/pip install torch
RUN /opt/myenv/bin/pip install Flask
RUN /opt/myenv/bin/pip install matplotlib
RUN /opt/myenv/bin/pip install scikit-learn
RUN /opt/myenv/bin/pip install transformers
RUN /opt/myenv/bin/pip install pandas
RUN /opt/myenv/bin/pip install sentence_transformers
RUN /opt/myenv/bin/python3 -m pip install --upgrade setuptools wheel
# Final image
FROM python:3.10-slim
......
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