Finally a production ready application

This commit is contained in:
Gabriel Brown 2024-07-20 22:40:16 -05:00
parent 0d8fdf61e6
commit c70144bb22
3 changed files with 4 additions and 8 deletions

4
.prod/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM node:latest
WORKDIR /home/node/app
RUN npm install -g pnpm
CMD ["pnpm", "go"]

View File

@ -1,4 +0,0 @@
wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
source ~/.bashrc
pnpm build
pnpm start

View File

@ -1,4 +0,0 @@
sudo docker restart techtracker
cd ~/Documents/Web/Tech_Tracker_Web
git pull
sudo docker exec techtracker bash update/update_container.sh