feat: deploy scripts

This commit is contained in:
2022-12-23 18:33:15 +01:00
parent 1465f21b6c
commit 33832cca2c
2 changed files with 13 additions and 1 deletions

View File

@@ -8,4 +8,6 @@ RUN npm install
COPY . .
RUN node src/index.js
RUN tsc --build
CMD node dist/index.js

10
deploy.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
git pull
docker build . -t srizan10/ava
docker stop ava
docker rm ava
docker run -d -t --name ava --restart unless-stopped srizan10/ava