-
Notifications
You must be signed in to change notification settings - Fork 270
Docker file for V3 #451
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
Comments
Thanks for the question @Pascal76! We are planning to create setup guides for different tools/environments, including Docker, soon (after all the bug issues on GitHub are solved). Thus, I'm leaving this issue as open. In the meantime, I will try to guide you towards a file that works for you, here's a basic setup:
Let me know if that works for you or if you need anything else. |
Thanks @jakubSzuminski `sh build.sh
|
Here's a working dockerfile: (it's in a zip because GitHub doesn't like docker for some reason) |
Great, thanks! This will be very helpful for us and other users. |
FROM node:21 RUN npm install highcharts-export-server -g RUN apt-get update && RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN apt-get update && RUN apt-get install -y ./google-chrome-stable_current_amd64.deb && EXPOSE 7801 ENTRYPOINT ["highcharts-export-server", "--enableServer", "1", "--port", "7801", "--logLevel", "4"] |
There are missing anti slash characters |
thanks for noting it i have updated FROM node:21 ENV HIGHCHARTS_VERSION=11.4.0 RUN npm install highcharts-export-server -g RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN apt-get update && apt-get install -y fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcups2 libdbus-1-3 libdrm2 libgbm1 libgtk-3-0 libnspr4 libnss3 libu2f-udev libvulkan1 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 libxrandr2 xdg-utils && rm -rf /var/lib/apt/lists/* RUN apt-get install -y ./google-chrome-stable_current_amd64.deb && rm google-chrome-stable_current_amd64.deb ENTRYPOINT ["highcharts-export-server", "--enableServer", "1"] |
size: 2.6GB vs 356MB before V3 ! |
The Dockerfile I posted a few comments up is only 723MB and still works fine, just need to bump some version numbers. Most of that size is chrome and it's deps, which is unavoidable. |
wouldnt make it more sense to use the |
That image requires SYS_ADMIN, which isn't possible in a lot of cloud providers and will fail any security audit. |
I don't fully understand why that is reuquired by them (and why it is not just a suggestion). But if you look at the Dockerfile for that, it is quite similar to the above suggested ones. And acutally we were able to run an older version of the highcharts export server without the
|
My docker file, around 900mb.
Any ideas why environment variables like SERVER_ENABLE, SERVER_PORT are not used by the export server? I have to pass them as parameters to ENTRYPOINT. |
could you tell me the command line to install the master please ? I tried several methods without success |
Hello,
Is it possible to provide a docker file for the new release please ? :)
The text was updated successfully, but these errors were encountered: