From 9ee57deaa5ebb7d2756d925166734d2f4bd2a60e Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 6 Mar 2021 21:00:21 +0700 Subject: [PATCH] Updated node and docker build and add script --- Dockerfile | 4 ++-- scripts/build.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 scripts/build.sh diff --git a/Dockerfile b/Dockerfile index 3c742d4..48e3a8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -from node:14.16.0-alpine3.13 +from node:14.16.0 LABEL maintainer="sombochea@cubetiqs.com" 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 ADD fonts/OpenSans-Regular.ttf OpenSans-Regular.ttf diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..a920fa8 --- /dev/null +++ b/scripts/build.sh @@ -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} \ No newline at end of file