feat: deplow scripts and stuff

This commit is contained in:
2022-10-01 21:50:26 +02:00
parent 59addcc730
commit 08572b4a42
3 changed files with 20 additions and 2 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:alpine
COPY . /server
WORKDIR /server
RUN npm i
EXPOSE 7272
CMD tsc --build;cd

9
deploy.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
docker build . -t srizan10/api
docker stop api
docker rm api
docker run -d -t --name api -p 8083:7272 --restart unless-stopped srizan10/api

View File

@@ -18,8 +18,6 @@
},
"homepage": "https://github.com/SrIzan10/api#readme",
"dependencies": {
"axios": "^0.27.2",
"body-parser": "^1.20.0",
"dotenv": "^16.0.3",
"express": "^4.18.1",
"express-rate-limit": "^6.6.0",