history008 commited on
Commit
5bc47a7
·
verified ·
1 Parent(s): 2668ce8

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a Node.js base image as Skyvern is a Node.js application.
2
+ FROM node:20-slim
3
+
4
+ # Install Python and pip, as the Gemini API uses a Python library.
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ python3 \
7
+ python3-pip \
8
+ # Clean up to reduce image size
9
+ && apt-get clean \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Set the working directory inside the container.
13
+ WORKDIR /app
14
+
15
+ # Copy the dependency files first to leverage Docker's caching.
16
+ COPY package.json .
17
+ COPY requirements.txt .
18
+
19
+ # Install Node.js dependencies.
20
+ RUN npm install
21
+
22
+ # Install Python dependencies.
23
+ RUN pip3 install --no-cache-dir -r requirements.txt
24
+
25
+ # Copy the rest of your application code.
26
+ COPY . .
27
+
28
+ # The command to start your application.
29
+ # You will create a simple Node.js script to run Skyvern.
30
+ CMD ["node", "app.js"]