From c70144bb22921798714bf67e1baca5f942938356 Mon Sep 17 00:00:00 2001 From: gibbyb Date: Sat, 20 Jul 2024 22:40:16 -0500 Subject: [PATCH] Finally a production ready application --- .prod/Dockerfile | 4 ++++ update/update_container.sh | 4 ---- update/update_host.sh | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 .prod/Dockerfile delete mode 100755 update/update_container.sh delete mode 100755 update/update_host.sh diff --git a/.prod/Dockerfile b/.prod/Dockerfile new file mode 100644 index 0000000..5455e3c --- /dev/null +++ b/.prod/Dockerfile @@ -0,0 +1,4 @@ +FROM node:latest +WORKDIR /home/node/app +RUN npm install -g pnpm +CMD ["pnpm", "go"] diff --git a/update/update_container.sh b/update/update_container.sh deleted file mode 100755 index 741849b..0000000 --- a/update/update_container.sh +++ /dev/null @@ -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 diff --git a/update/update_host.sh b/update/update_host.sh deleted file mode 100755 index b973f9b..0000000 --- a/update/update_host.sh +++ /dev/null @@ -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