Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -34,5 +34,7 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
34 |
RUN wget https://www.dropbox.com/scl/fi/105qy7mkqfjcmnfd3tmv0/edit.pth?rlkey=qcd67cdrqz4jra0p3er966iuk -O clevr.pth
|
35 |
RUN rm -rf ~/.cache/torch_extensions
|
36 |
|
|
|
|
|
37 |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
38 |
CMD ["python", "app.py"]
|
|
|
34 |
RUN wget https://www.dropbox.com/scl/fi/105qy7mkqfjcmnfd3tmv0/edit.pth?rlkey=qcd67cdrqz4jra0p3er966iuk -O clevr.pth
|
35 |
RUN rm -rf ~/.cache/torch_extensions
|
36 |
|
37 |
+
RUN export TORCH_EXTENSIONS_DIR=/home/${USER_NAME}/.cache
|
38 |
+
|
39 |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
40 |
CMD ["python", "app.py"]
|