MuseV / Dockerfile
jmanhype
fix: use existing gradio files from repository
d001364
raw
history blame
1.12 kB
FROM ubuntu:22.04
# Force rebuild timestamp: 2024-12-05 20:30
LABEL MAINTAINER="jmanhype"
LABEL Description="Test dockerfile for Hugging Face Space"
SHELL ["/bin/bash", "--login", "-c"]
# Install essential packages first
RUN apt-get update && apt-get install -y \
wget \
git \
python3 \
python3-pip \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
# Install Python packages
RUN pip3 install --user gradio numpy
# Configure git for the user
RUN git config --global user.email "[email protected]" && \
git config --global user.name "jmanhype"
# Clone the repository
RUN git clone https://github.com/TMElyralab/MuseV.git .
# Make the entrypoint script executable
RUN chmod +x scripts/gradio/entrypoint.sh
EXPOSE 7860
WORKDIR $HOME/app/scripts/gradio
CMD ["./entrypoint.sh"]