Spaces:
Sleeping
Sleeping
update dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.8.9
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
@@ -9,7 +9,10 @@ RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf
|
|
9 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
10 |
|
11 |
FROM lfoppiano/grobid AS grobid
|
12 |
-
|
|
|
|
|
|
|
13 |
|
14 |
# User
|
15 |
RUN useradd -m -u 1000 user
|
|
|
1 |
+
FROM python:3.8.9 AS base
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
9 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
10 |
|
11 |
FROM lfoppiano/grobid AS grobid
|
12 |
+
|
13 |
+
FROM base
|
14 |
+
|
15 |
+
COPY --from=grobid /path/to/grobid /grobid
|
16 |
|
17 |
# User
|
18 |
RUN useradd -m -u 1000 user
|