GenAI_VTON_API / Dockerfile
nami0342's picture
Update Readme.md
0df8016
raw
history blame
645 Bytes
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
# Set working directory
WORKDIR /
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV CUDA_VISIBLE_DEVICES=0
# Expose port (if your app needs it)
EXPOSE 7860
# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]