Prat0 commited on
Commit
b96f4cb
·
verified ·
1 Parent(s): 5809b1a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -1,6 +1,12 @@
1
  # Use the official Python image from the Docker Hub
2
  FROM python:3.11-slim
3
 
 
 
 
 
 
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
@@ -17,4 +23,4 @@ COPY . .
17
  EXPOSE 8000
18
 
19
  # Command to run the FastAPI application
20
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
 
1
  # Use the official Python image from the Docker Hub
2
  FROM python:3.11-slim
3
 
4
+ # Install build dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ gcc \
7
+ python3-dev \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
  # Set the working directory in the container
11
  WORKDIR /app
12
 
 
23
  EXPOSE 8000
24
 
25
  # Command to run the FastAPI application
26
+ CMD ["uvicorn", "your_module_name:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]