javear commited on
Commit
36806f3
·
verified ·
1 Parent(s): fddfcdf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python image as the base
2
+ FROM python:3.10-slim
3
+
4
+ # Set environment variables to prevent Python from writing pyc files
5
+ # and to prevent buffering of output
6
+ ENV PYTHONDONTWRITEBYTECODE=1
7
+ ENV PYTHONUNBUFFERED=1
8
+
9
+ # Install required system packages
10
+ RUN apt-get update && apt-get install -y --no-install-recommends \
11
+ git \
12
+ && apt-get clean \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Set the working directory in the container
16
+ WORKDIR /app
17
+
18
+ # Clone the repository directly
19
+ RUN git clone https://github.com/Skyvern-AI/skyvern.git .
20
+
21
+ # Install Python dependencies
22
+ # If using requirements.txt:
23
+ RUN pip install --no-cache-dir -r requirements.txt
24
+
25
+ # Expose the port that the application listens on
26
+ EXPOSE 8000
27
+
28
+ # Define the default command to run the application
29
+ # Replace `app.py` with your app's entry point
30
+ CMD ["python", "app.py"]