pvanand commited on
Commit
dfffe93
1 Parent(s): 6bca799

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -17
Dockerfile CHANGED
@@ -5,28 +5,13 @@ FROM python:3.10.9
5
  WORKDIR /app
6
 
7
  # Copy the current directory contents into the container at /app
8
- COPY . /app
9
-
10
- # Set environment variable for Matplotlib to use a writable directory
11
- ENV MPLCONFIGDIR=/app/matplotlib
12
-
13
- # Create the directory for Matplotlib config and set write permissions
14
- RUN mkdir -p /app/matplotlib && chmod -R 777 /app/matplotlib
15
 
16
- # Set environment variable for IPython to use a writable directory
17
- ENV IPYTHONDIR=/app/ipython
18
-
19
- # Create the directory for IPython config and set write permissions
20
- RUN mkdir -p /app/ipython && chmod -R 777 /app/ipython
21
-
22
- # Create an output folder and give it all permissions
23
- RUN mkdir -p /app/output && chmod -R 2777 /app/output
24
 
25
  # Install any needed packages specified in requirements.txt
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
- # Run the script to download NLTK data
29
- # RUN python /app/download_nltk_data.py
30
 
31
  # Create a non-root user
32
  RUN useradd -m myuser
 
5
  WORKDIR /app
6
 
7
  # Copy the current directory contents into the container at /app
 
 
 
 
 
 
 
8
 
9
+ COPY requirements.txt /app
 
 
 
 
 
 
 
10
 
11
  # Install any needed packages specified in requirements.txt
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ COPY . /app
 
15
 
16
  # Create a non-root user
17
  RUN useradd -m myuser