Spaces:
Sleeping
Sleeping
Commit
·
c53fb27
1
Parent(s):
a058d95
initial
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -2,12 +2,16 @@ FROM python:3.9
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
RUN pip install --upgrade pip
|
| 6 |
|
| 7 |
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
| 8 |
|
| 9 |
-
COPY ./requirements.txt /code/requirements.txt
|
| 10 |
-
|
| 11 |
ENV PATH="/root/.cargo/bin:${PATH}"
|
| 12 |
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
+
|
| 7 |
+
COPY ./cache /code/cache
|
| 8 |
+
|
| 9 |
+
ENV TRANSFORMERS_CACHE="/code/cache"
|
| 10 |
+
|
| 11 |
RUN pip install --upgrade pip
|
| 12 |
|
| 13 |
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
| 14 |
|
|
|
|
|
|
|
| 15 |
ENV PATH="/root/.cargo/bin:${PATH}"
|
| 16 |
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|