dock2 / Dockerfile
lukiod's picture
Update Dockerfile
cd79bcc verified
raw
history blame
703 Bytes
FROM pytorch/pytorch:latest
RUN useradd -m -u 1000 user
USER user
# Set working directory
WORKDIR /app
ENV PATH="/home/user/.local/bin:$PATH"
# Install system dependencies
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx
RUN pip install --no-cache-dir -r requirements.txt
# Install additional required libraries
RUN pip install byaldi qwen-vl-utils
# Copy your application code
COPY app.py .
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
# Expose the port the app runs on
EXPOSE 8000
# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]