Gokulavelan commited on
Commit
33eb02e
·
1 Parent(s): 4873c1e
Files changed (1) hide show
  1. Dockerfile +0 -15
Dockerfile CHANGED
@@ -1,26 +1,11 @@
1
  # Use the official Python image as a base
2
  FROM python:3.9-slim
3
 
4
- # Set environment variables
5
- ENV PYTHONUNBUFFERED=1 \
6
- PYTHONDONTWRITEBYTECODE=1
7
-
8
- # Install system dependencies
9
- RUN apt-get update && apt-get install -y \
10
- git \
11
- && apt-get clean \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # Create and set the working directory
15
- WORKDIR /app
16
 
17
  # Copy requirements and install them
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # Copy the FastAPI application code
22
- COPY app /app
23
-
24
  # Expose the port FastAPI will run on
25
  EXPOSE 8000
26
 
 
1
  # Use the official Python image as a base
2
  FROM python:3.9-slim
3
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  # Copy requirements and install them
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
 
 
9
  # Expose the port FastAPI will run on
10
  EXPOSE 8000
11