storywriter / Dockerfile
matthoffner's picture
Update Dockerfile
f8a2815
raw
history blame
573 Bytes
FROM python:latest
ENV PYTHONUNBUFFERED 1
EXPOSE 8000
COPY requirements.txt ./
RUN pip install --upgrade pip && \
pip install -r requirements.txt
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get install git-lfs
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
RUN git clone https://huggingface.co/TheBloke/MPT-7B-Storywriter-GGML
COPY --chown=user . $HOME/app
RUN ls -al
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]