Updated node and docker build and add script

This commit is contained in:
Sambo Chea 2021-03-06 21:00:21 +07:00
parent e70cb9ee56
commit 9ee57deaa5
2 changed files with 12 additions and 2 deletions

View File

@ -1,8 +1,8 @@
from node:14.16.0-alpine3.13 from node:14.16.0
LABEL maintainer="sombochea@cubetiqs.com" LABEL maintainer="sombochea@cubetiqs.com"
ENV ACCEPT_HIGHCHARTS_LICENSE="YES" ENV ACCEPT_HIGHCHARTS_LICENSE="YES"
RUN npm install highcharts-export-server -g RUN sudo npm install highcharts-export-server -g
WORKDIR /usr/share/fonts/truetype WORKDIR /usr/share/fonts/truetype
ADD fonts/OpenSans-Regular.ttf OpenSans-Regular.ttf ADD fonts/OpenSans-Regular.ttf OpenSans-Regular.ttf

10
scripts/build.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
TAG=latest
REGISTRY=registry.kh.cubetiqs.com
IMAGE=highcharts-export-server
CONTAINER=${REGISTRY}/${IMAGE}:${TAG}
docker build -t ${CONTAINER} .
docker push ${CONTAINER}