minigpt-final / Dockerfile
tayhan
d
46f8fde
raw
history blame contribute delete
868 Bytes
FROM --platform=linux/amd64 ubuntu:20.04
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
WORKDIR /app
RUN apt-get update
RUN apt-get install gcc wget -y
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /app/Miniconda3-latest-Linux-x86_64.sh
RUN ls -la /app
RUN pwd
RUN bash Miniconda3-latest-Linux-x86_64.sh -b
RUN . ~/.bashrc
RUN . /root/miniconda3/etc/profile.d/conda.sh
RUN conda update conda
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install libgl1 libglib2.0-0 -y git-lfs
RUN git lfs install
RUN pip install --upgrade huggingface_hub
RUN git config --global credential.helper store
RUN huggingface-cli login --token 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
RUN git lfs install
RUN git clone https://huggingface.co/spaces/tayhan/minigpt-final
RUN conda env create -f minigpt-final/environment.yml