Install CrispASR shared libraries into runtime linker path
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -22,6 +22,7 @@ RUN apt-get update && \
|
|
| 22 |
COPY --from=build /src/CrispASR/build /opt/crispasr/build
|
| 23 |
COPY requirements.txt /space/requirements.txt
|
| 24 |
RUN pip3 install --no-cache-dir -r /space/requirements.txt
|
|
|
|
| 25 |
|
| 26 |
COPY app.py start.sh /space/
|
| 27 |
RUN chmod +x /space/start.sh && \
|
|
@@ -30,7 +31,6 @@ RUN chmod +x /space/start.sh && \
|
|
| 30 |
chown -R app:app /space /opt/crispasr /models /cache
|
| 31 |
|
| 32 |
ENV PATH=/opt/crispasr/build/bin:$PATH
|
| 33 |
-
ENV LD_LIBRARY_PATH=/opt/crispasr/build/src:/opt/crispasr/build/bin:${LD_LIBRARY_PATH}
|
| 34 |
ENV CRISPASR_SERVER_URL=http://127.0.0.1:8080
|
| 35 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 36 |
ENV GRADIO_SERVER_PORT=7860
|
|
|
|
| 22 |
COPY --from=build /src/CrispASR/build /opt/crispasr/build
|
| 23 |
COPY requirements.txt /space/requirements.txt
|
| 24 |
RUN pip3 install --no-cache-dir -r /space/requirements.txt
|
| 25 |
+
RUN find /opt/crispasr/build -type f -name 'lib*.so*' -exec cp -a {} /usr/local/lib/ \; && ldconfig
|
| 26 |
|
| 27 |
COPY app.py start.sh /space/
|
| 28 |
RUN chmod +x /space/start.sh && \
|
|
|
|
| 31 |
chown -R app:app /space /opt/crispasr /models /cache
|
| 32 |
|
| 33 |
ENV PATH=/opt/crispasr/build/bin:$PATH
|
|
|
|
| 34 |
ENV CRISPASR_SERVER_URL=http://127.0.0.1:8080
|
| 35 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 36 |
ENV GRADIO_SERVER_PORT=7860
|