sschellhammer commited on
Commit
630bbf8
·
verified ·
1 Parent(s): 4b9058d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Prevent Python from buffering output
5
+ ENV PYTHONUNBUFFERED=1
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+ # Install system dependencies
11
+ RUN apt-get update && apt-get install -y \
12
+ git \
13
+ build-essential \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Clone Potato repository
17
+ RUN git clone https://github.com/davidjurgens/potato.git .
18
+
19
+ # Install Python dependencies
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Expose web port
23
+ EXPOSE 7860
24
+
25
+ # Default command to run Potato server
26
+ CMD ["python", "server.py", "--host", "0.0.0.0", "--port", "7860"]