From e97d30b3c50d3b9436ec8ec427bc51e05768ece2 Mon Sep 17 00:00:00 2001 From: kim Date: Thu, 23 Nov 2023 17:09:04 +0100 Subject: [PATCH] refactor: use ARG --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d9ecddf37..dbd94e9f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM node:18-alpine # install git, necessary for github dependencies RUN apk add --no-cache git +ARG NEXT_PUBLIC_API_HOST=${NEXT_PUBLIC_API_HOST} + WORKDIR /usr/src/app RUN mkdir -p . @@ -11,7 +13,6 @@ COPY package.json . COPY .yarnrc.yml . COPY .yarn .yarn -ARG NEXT_PUBLIC_API_HOST=${NEXT_PUBLIC_API_HOST} RUN yarn install