Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1 unmodified line234567891011121314151617181920212223241 unmodified lineWORKDIR /app# Install g++ and build tools firstRUN apt-get update && apt-get install -y \g++ \build-essential \&& rm -rf /var/lib/apt/lists/*# Downgrade pip FIRST before anything elseRUN pip install "pip<24.1"# Now install dependencies in the right orderRUN pip install torch --index-url https://download.pytorch.org/whl/cpuRUN pip install omegaconf==2.0.6 --no-depsRUN pip install hydra-core==1.0.7 --no-depsRUN pip install fairseq==0.12.2RUN pip install gradio numpy bitarray sacrebleu sentencepiece# Copy all your filesCOPY . .EXPOSE 78601 unmodified line234567891011121314151617181920211 unmodified lineWORKDIR /appRUN apt-get update && apt-get install -y \g++ \build-essential \&& rm -rf /var/lib/apt/lists/*RUN pip install "pip<24.1"# Pin torch to 2.0.1 to avoid weights_only=True breaking fairseq checkpointsRUN pip install torch==2.0.1 --index-url https://download.pytorch.org/whl/cpuRUN pip install omegaconf==2.0.6 --no-depsRUN pip install hydra-core==1.0.7 --no-depsRUN pip install fairseq==0.12.2RUN pip install gradio numpy bitarray sacrebleu sentencepieceCOPY . .EXPOSE 7860
Dockerfile+2-5