I’ve followed some tutorials and launched a container with a Bokeh server, and the container runs with this message (no errrors):
2020-06-04 17:36:22,868 User authentication hooks NOT provided (default user enabled) 2020-06-04 17:36:22,871 Bokeh app running at: http://0.0.0.0:5100/bkapp 2020-06-04 17:36:22,871 Starting Bokeh server with process id: 6
But when I visit the page it 404s.
My Dockerfile:
FROM python:3 # set a directory for the app WORKDIR /home/drew/docker-tutorial/ # copy all the files to the container COPY . . # install dependencies RUN pip install --no-cache-dir -r requirements.txt COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENV ORIGIN="0.0.0.0:5100" PORT="5100" PREFIX="" LOG_LEVEL="info" ENTRYPOINT ["./entrypoint.sh"]
Here’s my entrypoint.sh
if [ -z "${PREFIX}" ]; then PREFIX_PARAM=""; else PREFIX_PARAM="--prefix ${PREFIX}"; fi bokeh serve --port ${PORT} --address 0.0.0.0 --allow-websocket-origin ${ORIGIN} ${PREFIX_PARAM} --log-level ${LOG_LEVEL} bkapp.py
My bkapp.py runs fine locally with the ‘bokeh serve’ command.