From 3b6196d0f53710c0f5220ba79cf09301444f4b1f Mon Sep 17 00:00:00 2001 From: Refringe Date: Sat, 7 Dec 2024 21:44:06 -0500 Subject: [PATCH] Docker build issue Needed to save an argument value to an environment value before it could be used. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 677405b..27c5923 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ -ARG PROD=false - FROM node:20.12-slim +# Set the PROD environment variable from the build argument +ARG PROD +ENV PROD=$PROD + # Update and install dependencies RUN apt-get update && apt-get install -y curl unzip && rm -rf /var/lib/apt/lists/*