Commit 5cb4819f authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent d37c4551
No related merge requests found
Pipeline #10733 failed with stages
in 11 minutes and 3 seconds
Showing with 2 additions and 5 deletions
+2 -5
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
......
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