docksky / Dockerfile
history008's picture
Create Dockerfile
5bc47a7 verified
raw
history blame contribute delete
824 Bytes
# Use a Node.js base image as Skyvern is a Node.js application.
FROM node:20-slim
# Install Python and pip, as the Gemini API uses a Python library.
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
# Clean up to reduce image size
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory inside the container.
WORKDIR /app
# Copy the dependency files first to leverage Docker's caching.
COPY package.json .
COPY requirements.txt .
# Install Node.js dependencies.
RUN npm install
# Install Python dependencies.
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy the rest of your application code.
COPY . .
# The command to start your application.
# You will create a simple Node.js script to run Skyvern.
CMD ["node", "app.js"]