Avinashnalla7 commited on
Commit
6545a36
·
1 Parent(s): c2aa6bc

Force Docker Space + serve health on

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -3
  2. README.md +3 -7
Dockerfile CHANGED
@@ -1,11 +1,13 @@
1
  FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
- ENV PYTHONDONTWRITEBYTECODE=1
5
- ENV PYTHONUNBUFFERED=1
6
 
7
  COPY requirements.txt /app/requirements.txt
8
  RUN pip install --no-cache-dir -r /app/requirements.txt
9
 
10
  COPY . /app
11
- CMD ["sh","-lc","set -e; python -u backend/worker/worker.py & exec uvicorn health_api:app --host 0.0.0.0 --port "]
 
 
 
 
 
1
  FROM python:3.11-slim
2
 
3
  WORKDIR /app
 
 
4
 
5
  COPY requirements.txt /app/requirements.txt
6
  RUN pip install --no-cache-dir -r /app/requirements.txt
7
 
8
  COPY . /app
9
+
10
+ ENV PYTHONUNBUFFERED=1
11
+ EXPOSE 7860
12
+
13
+ CMD ["sh","-lc","set -e; python -u backend/worker/worker.py & exec uvicorn health_api:app --host 0.0.0.0 --port ${PORT:-7860}"]
README.md CHANGED
@@ -1,11 +1,7 @@
1
  ---
2
- title: PDF Trainer Worker
3
- emoji: 🧰
4
- colorFrom: blue
5
- colorTo: purple
6
  sdk: docker
7
- app_file: app.py
8
- pinned: false
9
  ---
10
 
11
- Gmail polling worker for PDF Trainer.
 
1
  ---
2
+ title: pdf-trainer-worker
 
 
 
3
  sdk: docker
4
+ app_port: 7860
 
5
  ---
6
 
7
+ Worker + health API.