Peter Larnholt commited on
Commit
275a99c
·
1 Parent(s): 5130472

Add sitecustomize.py to Docker build

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -15,6 +15,9 @@ WORKDIR /app
15
  COPY requirements.txt /app/
16
  RUN python3 -m pip install --upgrade pip && pip3 install -r requirements.txt
17
 
 
 
 
18
  # ensure caches exist & are writable in Spaces container
19
  RUN mkdir -p /tmp/numba_cache /tmp/outlines_cache && chmod -R 777 /tmp/numba_cache /tmp/outlines_cache
20
 
 
15
  COPY requirements.txt /app/
16
  RUN python3 -m pip install --upgrade pip && pip3 install -r requirements.txt
17
 
18
+ # Copy sitecustomize.py to Python's site-packages to patch pyairports import globally
19
+ COPY sitecustomize.py /usr/local/lib/python3.10/dist-packages/
20
+
21
  # ensure caches exist & are writable in Spaces container
22
  RUN mkdir -p /tmp/numba_cache /tmp/outlines_cache && chmod -R 777 /tmp/numba_cache /tmp/outlines_cache
23