ollama-server2 / Dockerfile
bahadur3093's picture
next js ui
227e8b7
Raw
History Blame Contribute Delete
622 Bytes
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y curl zstd ca-certificates gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& curl -fsSL https://ollama.com/install.sh | sh \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
ENV OLLAMA_HOST=0.0.0.0:11434
ENV OLLAMA_ORIGINS=*
ENV HOME=/tmp
ENV OLLAMA_MODELS=/tmp/.ollama/models
WORKDIR /app
COPY package.json tsconfig.json next.config.js ./
RUN npm install
COPY . .
RUN npm run build
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 7860
ENTRYPOINT ["/entrypoint.sh"]