Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
# Create app directory
|
4 |
WORKDIR /app
|
5 |
|
6 |
-
COPY ./requirements.txt /app
|
7 |
COPY ./app.py /app
|
8 |
|
|
|
9 |
RUN pip install -r requirements.txt
|
10 |
-
RUN mkdir ./.cache
|
11 |
|
12 |
-
|
|
|
13 |
|
14 |
EXPOSE 5000
|
15 |
CMD ["flask", "run", "--host", "0.0.0.0"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
|
|
5 |
COPY ./app.py /app
|
6 |
|
7 |
+
COPY ./requirements.txt /app
|
8 |
RUN pip install -r requirements.txt
|
|
|
9 |
|
10 |
+
RUN mkdir /app/.cache
|
11 |
+
ARG SENTENCE_TRANSFORMERS_HOME=/app/.cache
|
12 |
|
13 |
EXPOSE 5000
|
14 |
CMD ["flask", "run", "--host", "0.0.0.0"]
|