DiGiAI commited on
Commit
82e1fa2
·
1 Parent(s): f3d6384

dockerfile

Browse files
Files changed (1) hide show
  1. .dockerfile +9 -2
.dockerfile CHANGED
@@ -12,7 +12,11 @@ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
12
  RUN apt-get install -y nodejs
13
 
14
  # Copy the requirements.txt file and install Python dependencies
15
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
16
 
17
  # Install Prisma CLI using npm
18
  RUN npm install @prisma/cli --save-dev
@@ -20,5 +24,8 @@ RUN npm install @prisma/cli --save-dev
20
  # Generate Prisma client
21
  RUN npx prisma generate
22
 
 
 
 
23
  # Your start command
24
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
12
  RUN apt-get install -y nodejs
13
 
14
  # Copy the requirements.txt file and install Python dependencies
15
+ COPY requirements.txt ./
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy the Prisma schema file
19
+ COPY prisma/schema.prisma ./prisma/
20
 
21
  # Install Prisma CLI using npm
22
  RUN npm install @prisma/cli --save-dev
 
24
  # Generate Prisma client
25
  RUN npx prisma generate
26
 
27
+ # Copy the rest of your application
28
+ COPY . .
29
+
30
  # Your start command
31
+ CMD [ "python", "app.py" ]