webpanelpickle / Dockerfile
njain's picture
Update Dockerfile
8d6f513
raw
history blame contribute delete
632 Bytes
FROM python:3.9
WORKDIR /code
COPY . .
RUN /usr/local/bin/python -m pip install --upgrade pip
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN python generate_webpanel.py
RUN cat webpanel_ntbk.py
#CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--access-logfile", "-", "--error-logfile", "-", "--timeout", "120", "webpanel_ntbk:app"]
#CMD ["panel", "serve", "/code/webpanel_ntbk.py", "--port", "7860", "--address", "0.0.0.0", "--allow-websocket-origin", "*"]
CMD ["panel", "serve", "/code/webpanel_ntbk.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin" ,"nikhilj-webpanelpickle.hf.space"]