MINZO-CORE-ENGINE / Dockerfile
minzo456's picture
Create Dockerfile
eb51c74 verified
raw
history blame contribute delete
933 Bytes
# Python 3.9 පදනම් කරගත් Docker Image එකක්
FROM python:3.9
# වැඩ කරන Directory එක සකසන්න
WORKDIR /code
# පද්ධතියට අවශ්‍ය දේ ස්ථාපනය කරන්න
RUN apt-get update && apt-get install -y \
build-essential \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Python Libraries ස්ථාපනය කරන්න
RUN pip install --no-cache-dir fastapi uvicorn llama-cpp-python requests
# Model එක Download කරගන්න (Llama 3.2 1B - Free Tier එකට ගැලපෙන වේගවත්ම එක)
RUN wget https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q8_0.gguf -O model.gguf
# අපේ app.py කේතය කොපි කරන්න
COPY . .
# FastAPI පණගන්වන්න
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]