upload
Browse files- Dockerfile +10 -0
- run.sh +1 -1
Dockerfile
CHANGED
|
@@ -7,9 +7,17 @@ WORKDIR /app
|
|
| 7 |
# make directory /app/files/
|
| 8 |
RUN mkdir /app/files/
|
| 9 |
RUN mkdir /app/ckpt/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# grant permission to write to /app/files/
|
| 11 |
RUN chmod 777 /app/files/
|
| 12 |
RUN chmod 777 /app/ckpt/
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# Copy the requirements file into the container
|
| 15 |
COPY requirements.txt .
|
|
@@ -40,6 +48,8 @@ RUN apt-get update && \
|
|
| 40 |
RUN chmod +x serve_grobid.sh
|
| 41 |
RUN ./serve_grobid.sh
|
| 42 |
RUN chmod +x /app/grobid-0.6.2/gradlew
|
|
|
|
|
|
|
| 43 |
|
| 44 |
# open the backend server and streamlit app
|
| 45 |
RUN chmod +x run.sh
|
|
|
|
| 7 |
# make directory /app/files/
|
| 8 |
RUN mkdir /app/files/
|
| 9 |
RUN mkdir /app/ckpt/
|
| 10 |
+
RUN mkdir /.cache/huggingface/hub/
|
| 11 |
+
RUN mkdir /.config/matplotlib/
|
| 12 |
+
RUN mkdir /.gradle/
|
| 13 |
+
|
| 14 |
+
|
| 15 |
# grant permission to write to /app/files/
|
| 16 |
RUN chmod 777 /app/files/
|
| 17 |
RUN chmod 777 /app/ckpt/
|
| 18 |
+
RUN chmod 777 /.cache/huggingface/hub/
|
| 19 |
+
RUN chmod 777 /.config/matplotlib/
|
| 20 |
+
RUN chmod 777 /.gradle/
|
| 21 |
|
| 22 |
# Copy the requirements file into the container
|
| 23 |
COPY requirements.txt .
|
|
|
|
| 48 |
RUN chmod +x serve_grobid.sh
|
| 49 |
RUN ./serve_grobid.sh
|
| 50 |
RUN chmod +x /app/grobid-0.6.2/gradlew
|
| 51 |
+
RUN mkdir /app/.gradle/
|
| 52 |
+
RUN chmod 777 /app/.gradle/
|
| 53 |
|
| 54 |
# open the backend server and streamlit app
|
| 55 |
RUN chmod +x run.sh
|
run.sh
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
/app/grobid-0.6.2/gradlew run
|
| 2 |
nohup python backend.py &
|
| 3 |
streamlit run frontend.py --server.address 0.0.0.0 --server.port 7860 --server.enableCORS true --server.enableXsrfProtection false
|
|
|
|
| 1 |
+
/app/grobid-0.6.2/gradlew run &
|
| 2 |
nohup python backend.py &
|
| 3 |
streamlit run frontend.py --server.address 0.0.0.0 --server.port 7860 --server.enableCORS true --server.enableXsrfProtection false
|