Deadman922 commited on
Commit
d2b456a
·
verified ·
1 Parent(s): 3b9eaed

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -30
Dockerfile DELETED
@@ -1,30 +0,0 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /app
4
-
5
- # Environment configuration
6
- ENV ENABLE_WEB_INTERFACE=true
7
-
8
- # Create non-root user for security
9
- RUN adduser --disabled-password --gecos '' nonroot
10
-
11
- # Install dependencies first (cache layer)
12
- COPY requirements.txt .
13
- RUN pip install --no-cache-dir -r requirements.txt
14
-
15
- # Copy application code
16
- COPY . .
17
-
18
- # Set ownership and switch to non-root user
19
- RUN chown -R nonroot:nonroot /app
20
- USER nonroot
21
-
22
- # Expose the port
23
- EXPOSE 7860
24
-
25
- # Health check
26
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
27
- CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1
28
-
29
- # Start the server
30
- CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "7860"]