-
Notifications
You must be signed in to change notification settings - Fork 240
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 824 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM tensorflow/tensorflow:2.18.0-gpu
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
&& apt-get -y install apt-utils gcc libpq-dev libsndfile-dev git build-essential cmake screen
# Clear cache
RUN apt clean && apt-get clean
# Install dependencies
COPY requirements*.txt /
RUN pip --no-cache-dir install -r /requirements.txt -r /requirements.cuda.txt
# Install rnnt_loss
COPY scripts /scripts
ARG install_rnnt_loss=true
ARG using_gpu=true
RUN if [ "$install_rnnt_loss" = "true" ] ; \
then if [ "$using_gpu" = "true" ] ; then export CUDA_HOME=/usr/local/cuda ; else echo 'Using CPU' ; fi \
&& ./scripts/install_rnnt_loss.sh \
else echo 'Using pure TensorFlow'; fi
RUN echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> /root/.bashrc