From 6b9ca591095dd86f99666d58957b51db6244114e Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Wed, 25 Dec 2024 00:59:12 +1100 Subject: [PATCH] Set node_env to production in Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a744f3..e9fd5df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,12 @@ WORKDIR /app COPY package.json package-lock.json ./ COPY ./app/templates ./app/templates COPY tailwind.config.js ./ -COPY ./app/static/css/tailwind.css ./app/static/css/tailwind.css # Install Node.js dependencies RUN npm install -# Build TailwindCSS assets +# Set NODE_ENV to production and build TailwindCSS assets +ENV NODE_ENV=production RUN npm run build # Stage 2: Python for Flask app