Spaces:
Build error
Build error
File size: 939 Bytes
92f7d95 f402c4f 95ce0ec ad90719 9179c2a ad90719 569a2a1 92f7d95 569a2a1 db1c61d 92f7d95 0d31e0d b7efaca 64ee78d 6b18843 0c02f93 90aaf73 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 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 .
|