Deadman922 commited on
Commit
37b33f5
·
verified ·
1 Parent(s): 33c14aa

Delete Dockerfile

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