sandbox338 commited on
Commit
fc7da11
·
verified ·
1 Parent(s): 9e4310d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -2,11 +2,12 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Set HOME to a writable location
6
  ENV HOME=/app
7
- ENV MPLCONFIGDIR=/app/.config/matplotlib
8
- ENV TORCH_HOME=/app/.torch
9
- ENV STREAMLIT_HOME=/app/.streamlit
 
10
 
11
  # Install system dependencies
12
  RUN apt-get update && apt-get install -y \
 
2
 
3
  WORKDIR /app
4
 
5
+ # Set up environment variables for writable directories
6
  ENV HOME=/app
7
+ ENV MPLCONFIGDIR=/tmp/.matplotlib
8
+ ENV TORCH_HOME=/tmp/.torch
9
+ ENV STREAMLIT_HOME=/tmp/.streamlit
10
+ ENV PYTHONPATH=$PYTHONPATH:/app
11
 
12
  # Install system dependencies
13
  RUN apt-get update && apt-get install -y \