Spaces:
Build error
Build error
| FROM ubuntu:18.04 | |
| # Copy the package list and requirements file to the container | |
| COPY packages.txt requirements.txt /root/ | |
| # Update the package list and install necessary packages | |
| RUN sed -i 's http://deb.debian.org http://cdn-aws.deb.debian.org g' /etc/apt/sources.list && \ | |
| sed -i 's http://archive.ubuntu.com http://us-east-1.ec2.archive.ubuntu.com g' /etc/apt/sources.list && \ | |
| sed -i '/security/d' /etc/apt/sources.list && \ | |
| apt-get update && \ | |
| apt-get install -y python3 python3-pip python3-protobuf python3-click && \ | |
| pip3 install --no-cache-dir datasets==1.14.0 huggingface-hub==0.12.1 | |
| # Install Python and the packages listed in requirements.txt | |
| RUN apt-get update && \ | |
| DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip python3-protobuf python3-click && \ | |
| pip3 install --no-cache-dir datasets==1.14.0 huggingface-hub==0.12.1 | |
| docker build -t my-image-name -f Dockerfile . | |