Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
RUN sed -i 's http://deb.debian.org http://cdn-aws.deb.debian.org g' /etc/apt/sources.list && \
|
| 2 |
sed -i 's http://archive.ubuntu.com http://us-east-1.ec2.archive.ubuntu.com g' /etc/apt/sources.list && \
|
| 3 |
sed -i '/security/d' /etc/apt/sources.list && \
|
|
@@ -5,18 +11,12 @@ RUN sed -i 's http://deb.debian.org http://cdn-aws.deb.debian.org g' /etc/apt/so
|
|
| 5 |
xargs -r -a /root/packages.txt apt-get install -y && \
|
| 6 |
rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
-
|
| 9 |
-
# Copy the package list and requirements file to the container
|
| 10 |
-
COPY packages.txt /root/
|
| 11 |
-
|
| 12 |
# Install Python and the packages listed in requirements.txt
|
| 13 |
RUN apt-get update && \
|
| 14 |
-
DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip && \
|
| 15 |
pip3 install --no-cache-dir datasets==1.14.0 huggingface-hub==0.12.1
|
| 16 |
|
| 17 |
-
|
| 18 |
-
RUN xargs -r -a /root/packages.txt apt-get install -y && \
|
| 19 |
-
rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
|
| 22 |
|
|
|
|
| 1 |
+
FROM ubuntu:18.04
|
| 2 |
+
|
| 3 |
+
# Copy the package list and requirements file to the container
|
| 4 |
+
COPY packages.txt requirements.txt /root/
|
| 5 |
+
|
| 6 |
+
# Update the package list and install necessary packages
|
| 7 |
RUN sed -i 's http://deb.debian.org http://cdn-aws.deb.debian.org g' /etc/apt/sources.list && \
|
| 8 |
sed -i 's http://archive.ubuntu.com http://us-east-1.ec2.archive.ubuntu.com g' /etc/apt/sources.list && \
|
| 9 |
sed -i '/security/d' /etc/apt/sources.list && \
|
|
|
|
| 11 |
xargs -r -a /root/packages.txt apt-get install -y && \
|
| 12 |
rm -rf /var/lib/apt/lists/*
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Install Python and the packages listed in requirements.txt
|
| 15 |
RUN apt-get update && \
|
| 16 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip python3-protobuf python3-click && \
|
| 17 |
pip3 install --no-cache-dir datasets==1.14.0 huggingface-hub==0.12.1
|
| 18 |
|
| 19 |
+
docker build -t my-image-name -f Dockerfile .
|
|
|
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
|