Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
@@ -14,5 +14,12 @@ COPY ./idcard_examples ./idcard_examples
|
|
14 |
COPY ./data ./data
|
15 |
RUN chmod a+x run.sh
|
16 |
RUN pip3 install -r requirements.txt
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
EXPOSE 8080 9000
|
|
|
|
14 |
COPY ./data ./data
|
15 |
RUN chmod a+x run.sh
|
16 |
RUN pip3 install -r requirements.txt
|
17 |
+
|
18 |
+
# Set environment variables for Python and shared libraries
|
19 |
+
ENV PYTHONPATH=/root/kby-ai-idcard
|
20 |
+
ENV LD_LIBRARY_PATH=/root/kby-ai-idcard:$LD_LIBRARY_PATH
|
21 |
+
|
22 |
+
RUN ldconfig /root/kby-ai-idcard
|
23 |
+
|
24 |
EXPOSE 8080 9000
|
25 |
+
CMD ["/bin/bash", "-c", "./run.sh"]
|