Ollama / Dockerfile
rkihacker's picture
Create Dockerfile
98be01a verified
raw
history blame
351 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Install masscan (because we need to scan the whole internet)
RUN apt-get update && apt-get install -y masscan && rm -rf /var/lib/apt/lists/*
EXPOSE 5000
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "8", "app:app"]