OpceanAI commited on
Commit
74ca8a2
·
verified ·
1 Parent(s): e934b8f

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -28
Dockerfile DELETED
@@ -1,28 +0,0 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- RUN apt-get update && apt-get install -y \
6
- git \
7
- curl \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- COPY requirements.txt .
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- COPY app.py .
14
-
15
- RUN python -c "\
16
- from transformers import AutoTokenizer, AutoModelForCausalLM; \
17
- print('Downloading tokenizer...'); \
18
- AutoTokenizer.from_pretrained('OpceanAI/Yuuki-best'); \
19
- print('Downloading model...'); \
20
- AutoModelForCausalLM.from_pretrained('OpceanAI/Yuuki-best'); \
21
- print('Done!')"
22
-
23
- EXPOSE 7860
24
-
25
- HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
26
- CMD curl -f http://localhost:7860/health || exit 1
27
-
28
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]