Skip to content
Snippets Groups Projects
dockerfile 724 B
Newer Older
Benedikt's avatar
Benedikt committed
FROM python:3.11

# WORKDIR /usr/src/app
ENV GIT_SSL_NO_VERIFY=1
Benedikt's avatar
Benedikt committed
# Install net-tools for ifconfig
Benedikt's avatar
Benedikt committed
# Install any needed packages specified in requirements.txt
RUN git clone https://gitlab1.ptb.de/digitaldynamicmeasurement/dsi-parser-frontend.git
RUN pip install --no-cache-dir -r dsi-parser-frontend/requirements.txt
Benedikt's avatar
Benedikt committed
# Install Supervisor to manage multiple processes
RUN pip install supervisor
Benedikt's avatar
Benedikt committed
EXPOSE 5020 5021
Benedikt's avatar
Benedikt committed
RUN cd dsi-parser-frontend
Benedikt's avatar
Benedikt committed
# Command to start Supervisor, which handles starting both the Bokeh server and FastAPI
Benedikt's avatar
Benedikt committed
CMD ["supervisord", "-c", "supervisord.conf"]
Benedikt's avatar
Benedikt committed
#CMD ["bokeh", "serve", "dsi-parser-frontend/", "--port", "5020", "--allow-websocket-origin", "*","--use-xheaders","--prefix","dsi-parser-frontend"]