tabby/Dockerfile
Meng Zhang 9d92821cf5
Add gptj converter (#19)
* Rename deployment-next to development

* Add GPTJ converter
2023-03-27 11:12:52 +08:00

32 lines
853 B
Docker

# syntax = docker/dockerfile:1.5
FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime
# Install utilities
RUN <<EOF
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
tar zxvf dagu.tar.gz
mv dagu /usr/local/bin
rm dagu.tar.gz LICENSE.md README.md
EOF
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
COPY tabby ./tabby