SmartPrep / Dockerfile
PrashantGoyal's picture
minor details fixed
7fea159
raw
history blame contribute delete
488 Bytes
FROM python:3.10-slim
WORKDIR /Transformers
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
cmake \
curl \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN python -m pip install --upgrade pip setuptools wheel \
&& python -m pip install -r requirements.txt --no-cache-dir
COPY . .
CMD ["uvicorn", "App.app:app", "--host", "0.0.0.0", "--port", "7860"]