pr1m4d0nn43301/tokenizer
0
1FROM python:3.10-slim2WORKDIR /app3 4# The user will only upload app.zip and this Dockerfile5COPY app.zip .6 7# Install unzip, extract the application, and clean up the zip file8# (also install build-essential for tokenizer dependencies)9RUN apt-get update && apt-get install -y --no-install-recommends unzip build-essential && \10 unzip -o app.zip && rm app.zip && \11 rm -rf /var/lib/apt/lists/*12 13RUN pip install --no-cache-dir -r requirements.txt14 15ENV HF_HOME=/app/cache16RUN python -c "from transformers import AutoTokenizer; AutoTokenizer.from_pretrained('unsloth/Llama-3.2-3B-Instruct')"17 18EXPOSE 786019CMD ["gunicorn", "--preload", "--timeout", "120", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]20 