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