Skip to content

fix(dockerdashboard): broken java + dash dependencies #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions docker/dashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
FROM python:3.9-slim
WORKDIR /opt/Merlion
# Install Java
RUN rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
apt-get update && \
apt-get upgrade && \
apt-get install -y --no-install-recommends openjdk-11-jre-headless && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y --no-install-recommends \
default-jre-headless \
&& rm -rf /var/lib/apt/lists/*
# Install Merlion from source & set up a gunicorn server
COPY *.md ./
COPY setup.py ./
COPY merlion merlion
RUN pip install gunicorn "./[dashboard]"

RUN pip install 'dash_bootstrap_components<=1.7.1' --force-reinstall

RUN pip install 'dash<=2.18.0' --force-reinstall

CMD gunicorn -b 0.0.0.0:80 merlion.dashboard.server:server