File size: 846 Bytes
36806f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use an official Python image as the base
FROM python:3.10-slim

# Set environment variables to prevent Python from writing pyc files
# and to prevent buffering of output
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

# Install required system packages
RUN apt-get update && apt-get install -y --no-install-recommends \
    git \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Set the working directory in the container
WORKDIR /app

# Clone the repository directly
RUN git clone https://github.com/Skyvern-AI/skyvern.git . 

# Install Python dependencies
# If using requirements.txt:
RUN pip install --no-cache-dir -r requirements.txt

# Expose the port that the application listens on
EXPOSE 8000

# Define the default command to run the application
# Replace `app.py` with your app's entry point
CMD ["python", "app.py"]