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"