Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
build: bump dockerfile node from 16-alphine to 22-alphine
Browse files Browse the repository at this point in the history
  • Loading branch information
PromiseFru committed Jul 6, 2024
1 parent 2ce9b54 commit e4ff9c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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

Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@



all: config build

config:
Expand All @@ -10,7 +7,7 @@ config:

build:
@echo "[!] Creating production build ..."
yarn install
yarn install --no-lockfile
yarn build

deploy:
Expand Down

0 comments on commit e4ff9c7

Please sign in to comment.