harsh-manvar commited on
Commit
0d5b8b4
·
verified ·
1 Parent(s): e488fe5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
- FROM python:3.9
2
  WORKDIR /app
 
3
  ENV MPLCONFIGDIR=/app/.config/matplotlib
 
 
4
  RUN mkdir -p $MPLCONFIGDIR
5
  COPY app.py /app
6
  COPY requirements.txt /app
 
1
+ FROM python:3.9-slim
2
  WORKDIR /app
3
+ ENV XDG_CACHE_HOME=/app/.cache
4
  ENV MPLCONFIGDIR=/app/.config/matplotlib
5
+ RUN mkdir -p /app/.config/matplotlib /app/.cache && \
6
+ chmod -R 777 /app/.config /app/.cache
7
  RUN mkdir -p $MPLCONFIGDIR
8
  COPY app.py /app
9
  COPY requirements.txt /app