MatrixIA commited on
Commit
c37527c
·
verified ·
1 Parent(s): fade1d6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -6,14 +6,16 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
6
 
7
  WORKDIR /app
8
 
 
 
 
 
9
  COPY requirements.txt /app/requirements.txt
10
  RUN pip install --no-cache-dir -r /app/requirements.txt
11
 
12
- # copy your FastAPI app
13
  COPY app /app/app
14
 
15
- # Hugging Face Spaces expose your app on PORT (defaults to 7860)
16
  ENV PORT=7860
17
  EXPOSE 7860
18
-
19
  CMD uvicorn app.main:app --host 0.0.0.0 --port ${PORT}
 
6
 
7
  WORKDIR /app
8
 
9
+ # ✅ Install CA certificates for TLS to Atlas
10
+ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
  COPY requirements.txt /app/requirements.txt
14
  RUN pip install --no-cache-dir -r /app/requirements.txt
15
 
 
16
  COPY app /app/app
17
 
18
+ # Spaces exposes $PORT (defaults 7860)
19
  ENV PORT=7860
20
  EXPOSE 7860
 
21
  CMD uvicorn app.main:app --host 0.0.0.0 --port ${PORT}