1
mirror of https://github.com/cocktailpeanut/dalai synced 2024-11-20 23:07:32 +01:00
dalai/Dockerfile

35 lines
642 B
Docker
Raw Permalink Normal View History

FROM python:3.10-slim-buster
# The dalai server runs on port 3000
EXPOSE 3000
# Install dependencies
RUN apt-get update \
&& apt-get install -y \
build-essential \
curl \
g++ \
git \
make \
python3-venv \
software-properties-common
# Add NodeSource PPA to get Node.js 18.x
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
# Install Node.js 18.x
RUN apt-get update \
&& apt-get install -y nodejs
WORKDIR /root/dalai
# Install dalai and its dependencies
RUN npm install dalai@0.3.1
RUN npx dalai alpaca setup
# Run the dalai server
CMD [ "npx", "dalai", "serve" ]