This commit is contained in:
2024-09-27 00:42:03 +03:00
parent b8c70a1eec
commit 5bc7a165a9

View File

@@ -1,17 +1,13 @@
# Stage 1: Build stage
FROM python:slim AS builder
FROM pytorch:slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libffi-dev \
libssl-dev
RUN pip install triton
RUN pip install --no-cache-dir -r requirements.txt \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends gcc libffi-dev libssl-dev
RUN pip install --no-cache-dir -r requirements.txt && rm -rf /var/lib/apt/lists/*
# Stage 2: Final stage
FROM python:slim