kevanthonyP commited on
Commit
d375b71
·
verified ·
1 Parent(s): c06859b

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -40
Dockerfile DELETED
@@ -1,40 +0,0 @@
1
- # Dockerfile for IT Support Triage OpenEnv
2
- # Deploy to Hugging Face Spaces with Docker SDK
3
-
4
- FROM python:3.11-slim
5
-
6
- WORKDIR /app
7
-
8
- # Install system dependencies
9
- RUN apt-get update && apt-get install -y --no-install-recommends \
10
- curl \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Copy requirements first for better caching
14
- COPY requirements.txt .
15
-
16
- # Install Python dependencies
17
- RUN pip install --no-cache-dir -r requirements.txt
18
-
19
- # Copy application files
20
- COPY models.py .
21
- COPY tasks.py .
22
- COPY environment.py .
23
- COPY server.py .
24
- COPY openenv.yaml .
25
- COPY inference.py .
26
- COPY README.md .
27
-
28
- # Expose port
29
- EXPOSE 7860
30
-
31
- # Health check
32
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
33
- CMD curl -f http://localhost:7860/health || exit 1
34
-
35
- # Set environment variables
36
- ENV PYTHONUNBUFFERED=1
37
- ENV PYTHONDONTWRITEBYTECODE=1
38
-
39
- # Run the server
40
- CMD ["python", "-m", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]