File size: 694 Bytes
630bbf8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e6476ae
49dca14
 
9fe1224
 
6291f4a
c4fc0c2
b5818ee
25f2139
69e5cd9
9fe1224
 
 
25db640
630bbf8
 
 
c4fc0c2
2bbca9f
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
32
33
34
# Use official Python image
FROM python:3.10-slim

# Prevent Python from buffering output
ENV PYTHONUNBUFFERED=1

# Set working directory
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    git \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Install nano
RUN apt-get update && apt-get install -y nano

# Copy requirements.txt
COPY requirements.txt /app

# Install Potato and Python dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r /app/requirements.txt

# Copy files and set access rights
COPY --chown=user . /app
RUN chmod +x /app/start.sh

# Expose web port
EXPOSE 7860

# Run start script
CMD ["/app/start.sh"]