upload
Browse files- Dockerfile +8 -15
Dockerfile
CHANGED
@@ -6,19 +6,13 @@ USER root
|
|
6 |
WORKDIR /app
|
7 |
|
8 |
# make directory /app/files/
|
9 |
-
RUN mkdir /app/files/
|
10 |
-
RUN mkdir /app/ckpt/
|
11 |
-
RUN mkdir /.cache/huggingface/hub/
|
12 |
-
RUN mkdir /.config/matplotlib/
|
13 |
-
RUN mkdir /.gradle/
|
14 |
-
|
15 |
-
|
16 |
-
# grant permission to write to /app/files/
|
17 |
-
RUN chmod 777 /app/files/
|
18 |
-
RUN chmod 777 /app/ckpt/
|
19 |
-
RUN chmod 777 /.cache/huggingface/hub/
|
20 |
-
RUN chmod 777 /.config/matplotlib/
|
21 |
-
RUN chmod 777 /.gradle/
|
22 |
|
23 |
# Copy the requirements file into the container
|
24 |
COPY requirements.txt .
|
@@ -49,8 +43,7 @@ RUN apt-get update && \
|
|
49 |
RUN chmod +x serve_grobid.sh
|
50 |
RUN ./serve_grobid.sh
|
51 |
RUN chmod +x /app/grobid-0.6.2/gradlew
|
52 |
-
RUN mkdir /app/.gradle/
|
53 |
-
RUN chmod 777 /app/.gradle/
|
54 |
|
55 |
# open the backend server and streamlit app
|
56 |
RUN chmod +x run.sh
|
|
|
6 |
WORKDIR /app
|
7 |
|
8 |
# make directory /app/files/
|
9 |
+
RUN mkdir -m 777 -p /app/files/
|
10 |
+
RUN mkdir -m 777 -p /app/ckpt/
|
11 |
+
RUN mkdir -m 777 -p /.cache/huggingface/hub/
|
12 |
+
RUN mkdir -m 777 -p /.config/matplotlib/
|
13 |
+
RUN mkdir -m 777 -p /.gradle/
|
14 |
+
RUN mkdir -m 777 -p /opt/grobid/grobid-home/tmp
|
15 |
+
RUN mkdir -m 777 -p /opt/grobid/logs
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
# Copy the requirements file into the container
|
18 |
COPY requirements.txt .
|
|
|
43 |
RUN chmod +x serve_grobid.sh
|
44 |
RUN ./serve_grobid.sh
|
45 |
RUN chmod +x /app/grobid-0.6.2/gradlew
|
46 |
+
RUN mkdir -m 777 -p /app/.gradle/
|
|
|
47 |
|
48 |
# open the backend server and streamlit app
|
49 |
RUN chmod +x run.sh
|