Magi / Dockerfile
rahul7star's picture
Create Dockerfile
dff7cd0 verified
Raw
History Blame Contribute Delete
547 Bytes
FROM sandai/magi-compiler:latest
WORKDIR /workspace
RUN apt-get update && apt-get install -y git ffmpeg && rm -rf /var/lib/apt/lists/*
# Clone repos
RUN git clone https://github.com/SandAI-org/MagiCompiler.git
RUN git clone https://github.com/GAIR-NLP/daVinci-MagiHuman
# Install MagiCompiler
WORKDIR /workspace/MagiCompiler
RUN pip install -r requirements.txt
RUN pip install .
# Copy app files
WORKDIR /workspace
COPY . .
RUN pip install -r requirements.txt
RUN chmod +x entrypoint.sh
EXPOSE 7860
ENTRYPOINT ["/workspace/entrypoint.sh"]