Spaces:
Sleeping

MUHAMMED THABSHEER P commited on
Commit
8c2a169
·
1 Parent(s): 45e7ae0

Dockerfile editted

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies for PostgreSQL and other libraries
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  libpq-dev \
@@ -15,9 +15,9 @@ RUN pip install --no-cache-dir -r requirements.txt
15
  # Copy the rest of the application code
16
  COPY . .
17
 
18
- # Set environment variables for Cloud Run compatibility
19
  ENV PORT=8080
20
  EXPOSE 8080
21
 
22
- # Run the application using uvicorn
23
  CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT}"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  libpq-dev \
 
15
  # Copy the rest of the application code
16
  COPY . .
17
 
18
+ # Standard port for Northflank / Cloud services
19
  ENV PORT=8080
20
  EXPOSE 8080
21
 
22
+ # Run the application
23
  CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT}"]