test_docker_poop / Dockerfile
drewThomasson's picture
Update Dockerfile
d266ceb verified
raw
history blame
806 Bytes
# Use an official Python image
FROM nvidia/cuda:11.8.0-base-ubuntu22.04
# Set up Python environment
ENV PYTHONUNBUFFERED=1
# Install system packages
RUN apt-get update && apt-get install -y \
wget git calibre ffmpeg libmecab-dev mecab mecab-ipadic python3-pip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Create and switch to a non-root user
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# Set working directory
WORKDIR /home/user/ebook2audiobook
# Clone the GitHub repository
RUN git clone https://github.com/DrewThomasson/ebook2audiobook.git /home/user/ebook2audiobook
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Expose the application port
EXPOSE 7860
# Start the Gradio app
CMD ["python", "app.py"]