webstuff/openai-detector
0
1# syntax=docker/dockerfile:1.42FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.043# BEGIN Static part4ENV DEBIAN_FRONTEND=noninteractive \5 TZ=Europe/Paris6 7RUN apt-get update && apt-get install -y \8 git \9 make build-essential libssl-dev zlib1g-dev \10 libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \11 libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git-lfs \12 ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \13 && rm -rf /var/lib/apt/lists/* \14 && git lfs install15 16# User17RUN useradd -m -u 1000 user18USER user19ENV HOME=/home/user \20 PATH=/home/user/.local/bin:$PATH21WORKDIR /home/user/app22 23# Pyenv24RUN curl https://pyenv.run | bash25ENV PATH=$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH26 27# Python28RUN pyenv install 3.7.5 && \29 pyenv global 3.7.5 && \30 pyenv rehash && \31 pip install --no-cache-dir --upgrade pip setuptools wheel && \32 pip install --no-cache-dir \33 datasets \34 huggingface-hub "protobuf<4" "click<8.1"35 36COPY --link --chown=1000 requirements.txt /home/user/app/requirements.txt37RUN pip install --no-cache-dir -r requirements.txt38 39COPY --link --chown=1000 ./ /home/user/app40 41CMD ["python", "-m", "detector.server", "detector-base.pt", "--port=7860"] 42 