File size: 360 Bytes
0d5b8b4
0efa81e
0d5b8b4
66c3c13
0d5b8b4
 
38e37da
0efa81e
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
FROM python:3.9-slim
WORKDIR /app
ENV XDG_CACHE_HOME=/app/.cache
ENV MPLCONFIGDIR=/app/.config/matplotlib
RUN mkdir -p /app/.config/matplotlib /app/.cache && \
    chmod -R 777 /app/.config /app/.cache
RUN mkdir -p $MPLCONFIGDIR
COPY app.py /app
COPY requirements.txt /app
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 7860
CMD ["python", "app.py"]