File size: 504 Bytes
4006ab0 98d540d c30b3c5 2a08146 c30b3c5 2a08146 4006ab0 98d540d 4006ab0 98d540d 4006ab0 c30b3c5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | FROM node:18-slim
WORKDIR /app
# Install required dependencies including curl
RUN apt-get update && apt-get install -y \
curl \
ca-certificates \
zstd \
xz-utils \
procps \
&& rm -rf /var/lib/apt/lists/*
# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
# Copy application files
COPY package*.json ./
RUN npm install
COPY . .
# Make start script executable
RUN chmod +x /app/start.sh
# Expose port
EXPOSE 7860
# Start the application
CMD ["/app/start.sh"] |