Niansuh commited on
Commit
6b1b933
·
verified ·
1 Parent(s): c6f5a0b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -10,16 +10,21 @@ ENV PYTHONUNBUFFERED=1
10
  # Set work directory
11
  WORKDIR /app
12
 
 
 
 
 
 
13
  # Install dependencies
14
  COPY requirements.txt .
15
  RUN pip install --upgrade pip
16
  RUN pip install -r requirements.txt
17
 
18
  # Copy project
19
- COPY . .
20
 
21
  # Expose port
22
  EXPOSE 8000
23
 
24
  # Run the application
25
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
10
  # Set work directory
11
  WORKDIR /app
12
 
13
+ # Install system dependencies
14
+ RUN apt-get update && apt-get install -y --no-install-recommends \
15
+ build-essential \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
  # Install dependencies
19
  COPY requirements.txt .
20
  RUN pip install --upgrade pip
21
  RUN pip install -r requirements.txt
22
 
23
  # Copy project
24
+ COPY main.py .
25
 
26
  # Expose port
27
  EXPOSE 8000
28
 
29
  # Run the application
30
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]