From 24fbde296b08a4e43c05f704eacdff13ee2baf7f Mon Sep 17 00:00:00 2001 From: bijan Date: Tue, 11 Mar 2025 20:29:35 +0330 Subject: [PATCH] fix: change to prod mode --- .env | 2 +- .gitignore | 1 + Dockerfile | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 25e66c0..7ab1b38 100644 --- a/.env +++ b/.env @@ -13,4 +13,4 @@ DATABASE_NAME=contactus DATABASE_USERNAME=bitium_contactus DATABASE_PASSWORD=bitium_contactus DATABASE_SSL=false -NODE_ENV=develop +NODE_ENV=production diff --git a/.gitignore b/.gitignore index 9b5330d..a9bbbb2 100644 --- a/.gitignore +++ b/.gitignore @@ -111,3 +111,4 @@ exports dist build .strapi-updater.json +.qodo diff --git a/Dockerfile b/Dockerfile index b91b8ee..62ae4f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM node:18-alpine3.18 # Installing libvips-dev for sharp Compatibility RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev nasm bash vips-dev git -ARG NODE_ENV=develop +ARG NODE_ENV=production ENV NODE_ENV=${NODE_ENV} WORKDIR /opt/ @@ -16,4 +16,4 @@ RUN chown -R node:node /opt/app USER node RUN ["yarn", "build"] EXPOSE 1337 -CMD ["yarn", "develop"] \ No newline at end of file +CMD ["yarn", "production"] \ No newline at end of file