Spaces:
Sleeping
Sleeping
fix dependency
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
3 |
WORKDIR /code
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
RUN --mount=target=/root/packages.txt,source=packages.txt 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 && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
4 |
+
|
5 |
WORKDIR /code
|
6 |
|
7 |
COPY ./requirements.txt /code/requirements.txt
|