Created
January 18, 2025 07:01
-
-
Save nananek/5c12cd33a39a3323d56c4dd575e028a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| YomiToku用 Dockerfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04 | |
| # Set timezone and non-interactive mode | |
| ENV TZ=Asia/Tokyo \ | |
| DEBIAN_FRONTEND=noninteractive | |
| # Install required tools and dependencies | |
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ | |
| && apt -y update && apt -y upgrade \ | |
| && apt install -y --no-install-recommends \ | |
| software-properties-common \ | |
| build-essential \ | |
| curl \ | |
| wget \ | |
| git \ | |
| ca-certificates \ | |
| poppler-utils \ | |
| libopencv-dev \ | |
| && apt clean | |
| # Install asdf and its dependencies | |
| RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.15.0 \ | |
| && echo '. ~/.asdf/asdf.sh' >> ~/.bashrc \ | |
| && echo '. ~/.asdf/completions/asdf.bash' >> ~/.bashrc | |
| # Set up asdf for this shell | |
| ENV ASDF_DIR=/root/.asdf | |
| ENV PATH="$ASDF_DIR/bin:$ASDF_DIR/shims:$PATH" | |
| # Install asdf Python plugin and Python 3.11.11 | |
| RUN apt install -y --no-install-recommends \ | |
| libssl-dev \ | |
| zlib1g-dev \ | |
| libbz2-dev \ | |
| libreadline-dev \ | |
| libsqlite3-dev \ | |
| libffi-dev \ | |
| liblzma-dev \ | |
| libncurses5-dev \ | |
| libgdbm-dev \ | |
| && apt clean | |
| RUN asdf plugin-add python \ | |
| && asdf install python 3.11.11 \ | |
| && asdf global python 3.11.11 | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir yomitoku | |
| # Set the working directory | |
| WORKDIR /workspace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment