Spaces:
Runtime error
Runtime error
Update
Browse files- Dockerfile +3 -1
- run.sh +2 -2
Dockerfile
CHANGED
|
@@ -11,5 +11,7 @@ COPY ./ocrengine/libttvcore.so /usr/lib
|
|
| 11 |
COPY ./app.py .
|
| 12 |
COPY ./demo.py .
|
| 13 |
RUN pip3 install -r requirements.txt
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
EXPOSE 8080
|
|
|
|
| 11 |
COPY ./app.py .
|
| 12 |
COPY ./demo.py .
|
| 13 |
RUN pip3 install -r requirements.txt
|
| 14 |
+
COPY ./ttvocrsrv /tmp
|
| 15 |
+
RUN chmod a+x run.sh
|
| 16 |
+
CMD ["./run.sh"]
|
| 17 |
EXPOSE 8080
|
run.sh
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
exec /tmp/ttvocrsrv &
|
| 4 |
+
exec python3 app.py
|