2023-03-22 15:18:12 +00:00
|
|
|
# syntax = docker/dockerfile:1.5
|
|
|
|
|
|
|
|
|
|
FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime
|
|
|
|
|
|
2023-03-25 06:44:46 +00:00
|
|
|
# Install utilities
|
2023-03-24 16:05:47 +00:00
|
|
|
RUN <<EOF
|
2023-03-25 06:44:46 +00:00
|
|
|
apt-get -y update
|
|
|
|
|
apt-get -y install git curl
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
# Install dagu
|
|
|
|
|
RUN <<EOF
|
|
|
|
|
curl -L https://github.com/yohamta/dagu/releases/download/v1.10.2/dagu_1.10.2_Linux_x86_64.tar.gz > dagu.tar.gz
|
2023-03-24 16:05:47 +00:00
|
|
|
tar zxvf dagu.tar.gz
|
|
|
|
|
mv dagu /usr/local/bin
|
|
|
|
|
rm dagu.tar.gz LICENSE.md README.md
|
|
|
|
|
EOF
|
|
|
|
|
|
2023-03-22 15:18:12 +00:00
|
|
|
ARG PYPI_INDEX_URL=https://pypi.org/simple
|
|
|
|
|
ARG POETRY_VERSION=1.4.0
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache pip install -i $PYPI_INDEX_URL "poetry==$POETRY_VERSION"
|
|
|
|
|
|
|
|
|
|
COPY poetry.lock pyproject.toml /app/
|
|
|
|
|
RUN poetry export --without-hashes -o requirements.txt
|
|
|
|
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache pip install -i $PYPI_INDEX_URL --extra-index-url https://pypi.org/simple --no-dependencies -r requirements.txt
|
|
|
|
|
|
2023-03-28 07:57:13 +00:00
|
|
|
## FIX bitandsands
|
|
|
|
|
ENV LD_LIBRARY_PATH "$LD_LIBRARY_PATH:/opt/conda/lib"
|
|
|
|
|
RUN ln -s /opt/conda/lib/libcudart.so.11.7.99 /opt/conda/lib/libcudart.so
|
|
|
|
|
|
2023-03-27 03:12:52 +00:00
|
|
|
COPY tabby ./tabby
|