|
1 |
| -# FROM mambaorg/micromamba:jammy-cuda-12.1.0 |
2 |
| -# FROM pytorch/pytorch:2.4.0-cuda11.8-cudnn9-devel |
3 |
| -# because of deps with torchtext will downgrade to torch 2.0.1 |
4 |
| -FROM bitnami/pytorch:2.3.1 |
5 |
| - |
| 1 | +FROM docker.io/bitnami/pytorch:2.3.1 |
6 | 2 | LABEL maintainer="Sylvain Le Groux <sylvain.legroux@gmail.com>"
|
7 | 3 | USER root
|
8 |
| - |
9 |
| -RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ |
| 4 | +RUN apt-get update && DEBIAN_FRONTEND=noninteractive && \ |
10 | 5 | apt-get install -y --no-install-recommends \
|
11 |
| - build-essential \ |
12 |
| -# libboost-all-dev \ |
13 |
| -# libeigen3-dev \ |
14 |
| -# cmake \ |
15 |
| -# zlib1g-dev libbz2-dev liblzma-dev \ |
16 |
| -# festival \ |
| 6 | + # build-essential \ |
17 | 7 | espeak-ng \
|
18 |
| -# mbrola \ |
19 |
| - git \ |
20 | 8 | git-lfs \
|
21 |
| - curl \ |
22 |
| - ca-certificates \ |
23 |
| - wget \ |
24 |
| - pkg-config && \ |
25 |
| - # spacy takes forever to install (wheels not available) |
26 |
| - pip install spacy && \ |
27 |
| - python -m spacy download en_core_web_sm && \ |
28 |
| - # Remove the effect of `apt-get update` |
| 9 | + libsndfile-dev \ |
| 10 | + curl && \ |
29 | 11 | apt-get clean && \
|
30 | 12 | rm -rf /var/lib/apt/lists/*
|
31 | 13 |
|
32 |
| -# RUN git clone https://github.com/kpu/kenlm && \ |
33 |
| -# cd kenlm; mkdir build; cd build && \ |
34 |
| -# cmake ..; make -j 4; make install |
35 |
| - |
36 |
| -# taking care of dependencies between torch/torchtext & lightning/numpy |
37 |
| -# RUN pip install torchtext torchvision torchaudio torchdata jupyterlab nbdev numpy lightning |
38 |
| - |
39 |
| -# RUN python -m spacy download en_core_web_sm |
40 |
| -# #&& git clone https://github.com/slegroux/nimrod |
41 |
| -# WORKDIR /workspaces/nimrod |
42 |
| -COPY . . |
43 |
| -RUN pip install -e . |
44 |
| -RUN nbdev_install_quarto && nbdev_install_hooks |
45 |
| -# # RUN git config --global --add safe.directory /workspaces/nimrod |
46 |
| - |
47 |
| -# EXPOSE 8888 |
48 |
| -# CMD ["jupyter", "lab", "--allow-root", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--NotebookApp.token=''","--NotebookApp.password=''"] |
| 14 | +RUN pip install slg-nimrod==0.0.11 |
| 15 | +RUN python -m spacy download en_core_web_sm |
| 16 | +RUN nbdev_install_hooks |
| 17 | +# RUN nbdev_install_quarto && \ |
0 commit comments