# 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"] | |