Keeby-smilyai commited on
Commit
0f9fe07
·
verified ·
1 Parent(s): 5e971b6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ======================================================
2
+ # 🚀 Hugging Face Space for Qwen3-0.6B-ONNX
3
+ # ======================================================
4
+
5
+ # Use an official Python image
6
+ FROM python:3.10-slim
7
+
8
+ # Install OS and Python dependencies
9
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
10
+ RUN pip install --no-cache-dir onnxruntime gradio huggingface_hub numpy transformers
11
+
12
+ # Download the ONNX model from the Hugging Face Hub
13
+ RUN python3 -c "\
14
+ from huggingface_hub import hf_hub_download; \
15
+ hf_hub_download(repo_id='onnx-community/Qwen3-0.6B-ONNX', filename='model.onnx', local_dir='/models'); \
16
+ hf_hub_download(repo_id='onnx-community/Qwen3-0.6B-ONNX', filename='config.json', local_dir='/models'); \
17
+ "
18
+
19
+ # Copy app
20
+ COPY app.py /app/app.py
21
+ WORKDIR /app
22
+
23
+ # Expose port used by Gradio
24
+ EXPOSE 7860
25
+
26
+ # Start the app
27
+ CMD [\"python3\", \"app.py\"]