File size: 322 Bytes
19ace7f
7b0ca78
 
 
e651a3a
 
 
7b0ca78
e651a3a
 
 
7b0ca78
19ace7f
7b0ca78
 
 
19ace7f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.9-slim

WORKDIR /app

# Set matplotlib config directory to a writable location
ENV MPLCONFIGDIR=/tmp/matplotlib

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && \
    mkdir -p /tmp/matplotlib && \
    chmod -R 777 /tmp/matplotlib

COPY . .

EXPOSE 7860

CMD ["python", "app.py"]