Set node_env to production in Dockerfile

This commit is contained in:
Peter Stockings
2024-12-25 00:59:12 +11:00
parent 1ec0e41c3a
commit 6b9ca59109

View File

@@ -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