Elephant-AI-Core / Dockerfile
minzo456's picture
Update Dockerfile
f721ff8 verified
raw
history blame contribute delete
432 Bytes
FROM python:3.10-slim
WORKDIR /code
# පද්ධතියට අවශ්‍ය libraries install කිරීම
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# මොඩල් එක load කිරීමට අවශ්‍ය cache folder එක සෑදීම
RUN mkdir -p /data/cache
ENV TRANSFORMERS_CACHE=/data/cache
COPY . .
# Flask app එක run කිරීම
CMD ["python", "app.py"]