Skip to content

Instantly share code, notes, and snippets.

@nananek
Created January 18, 2025 07:01
Show Gist options
  • Select an option

  • Save nananek/5c12cd33a39a3323d56c4dd575e028a5 to your computer and use it in GitHub Desktop.

Select an option

Save nananek/5c12cd33a39a3323d56c4dd575e028a5 to your computer and use it in GitHub Desktop.
YomiToku用 Dockerfile
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