diff --git a/.env.local.example b/.env.local.example index 48c29b6..f3a12ac 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,5 +1,5 @@ NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard" -NEXT_PUBLIC_API_VERSION = "2.6.4" +NEXT_PUBLIC_API_VERSION = "2.7.0" NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa" NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl" diff --git a/.gitignore b/.gitignore index 4692524..399a985 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,7 @@ ecosystem.config.js public/config.json -.vscode/ \ No newline at end of file +.vscode/ + +*.bundle +*.tar.gz \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c00d2c7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:21.1.0-alpine3.18 + +WORKDIR /var/www/app + +COPY package*.json . + +RUN npm install +COPY . . + +CMD [ "tail", "-f", "/dev/null"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..84ea064 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +services: + app: + build: . + volumes: + - .:/var/www/app + - /var/www/app/node_modules + command: sh -c "cd /var/www/app && tar -czvf packages_$(date +%Y_%m_%d).tar.gz node_modules"