From e4ff9c76df248bf09fa4d4e0a3d11fff566c8b20 Mon Sep 17 00:00:00 2001 From: Promise Fru Date: Sat, 6 Jul 2024 23:38:27 +0100 Subject: [PATCH] build: bump dockerfile node from 16-alphine to 22-alphine --- Dockerfile | 16 ++++++++-------- Makefile | 5 +---- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index ebb30e3..d018b27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # use node alpine as base image -FROM node:16-alpine as base +FROM node:22-alpine as base # install system build dependencies RUN apk add --no-cache \ make \ @@ -24,13 +24,13 @@ ARG SWOB_SSL_CRT_FILE ARG SWOB_SSL_KEY_FILE RUN export SWOB_BE_HOST=${SWOB_BE_HOST} \ -SWOB_GS_HOST=${SWOB_GS_HOST} \ -SWOB_RECAPTCHA_ENABLE=${SWOB_RECAPTCHA_ENABLE} \ -SWOB_RECAPTCHA_SITE_KEY=${SWOB_RECAPTCHA_SITE_KEY} \ -SWOB_SSL_ENABLE=${SWOB_SSL_ENABLE} \ -SWOB_SSL_CRT_FILE=${SWOB_SSL_CRT_FILE} \ -SWOB_SSL_KEY_FILE=${SWOB_SSL_KEY_FILE} \ -SWOB_SSL_ENABLE=${SWOB_SSL_ENABLE} + SWOB_GS_HOST=${SWOB_GS_HOST} \ + SWOB_RECAPTCHA_ENABLE=${SWOB_RECAPTCHA_ENABLE} \ + SWOB_RECAPTCHA_SITE_KEY=${SWOB_RECAPTCHA_SITE_KEY} \ + SWOB_SSL_ENABLE=${SWOB_SSL_ENABLE} \ + SWOB_SSL_CRT_FILE=${SWOB_SSL_CRT_FILE} \ + SWOB_SSL_KEY_FILE=${SWOB_SSL_KEY_FILE} \ + SWOB_SSL_ENABLE=${SWOB_SSL_ENABLE} RUN make diff --git a/Makefile b/Makefile index c2795db..66ee17f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,3 @@ - - - all: config build config: @@ -10,7 +7,7 @@ config: build: @echo "[!] Creating production build ..." - yarn install + yarn install --no-lockfile yarn build deploy: