Skip to content

Instantly share code, notes, and snippets.

@crowne
Created July 5, 2023 22:16
Show Gist options
  • Save crowne/a291d02b434ebc64055f7b6a576284ee to your computer and use it in GitHub Desktop.
Save crowne/a291d02b434ebc64055f7b6a576284ee to your computer and use it in GitHub Desktop.
highcharts-export-server
FROM node:18
ARG ACCEPT_HIGHCHARTS_LICENSE=YES
ARG HIGHCHARTS_VERSION=9.2.2
# Create app directory
WORKDIR /usr/src/app
RUN npm install highcharts-export-server -g
# Applies this PR https://github.com/highcharts/node-export-server/pull/337
COPY patch/server.js /usr/local/lib/node_modules/highcharts-export-server/lib/server.js
COPY script/run.sh /usr/src/app/run.sh
RUN chmod 0755 /usr/src/app/run.sh
# #!/bin/bash
# highcharts-export-server --logLevel 4 --enableServer 1 --port 7801 --skipKey --skipToken
EXPOSE 7801
ENTRYPOINT ["./run.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment