This commit is contained in:
Jyotirmoy Bandyopadhayaya 2023-05-09 10:54:11 +05:30
parent e58f9866e7
commit 47ab750bdc
Signed by: bravo68web
GPG Key ID: F5671FD7BCB9917A
3 changed files with 5 additions and 4 deletions

View File

@ -13,6 +13,7 @@ jobs:
node-version: 16 node-version: 16
- run: npm install -g yarn - run: npm install -g yarn
- run: yarn - run: yarn
- run: yarn build
- run: sudo apt install redis-tools - run: sudo apt install redis-tools
- run: chmod +x spawn_redis_server.sh test_local.sh - run: chmod +x spawn_redis_server.sh test_local.sh
- run: ./spawn_redis_server.sh & - run: ./spawn_redis_server.sh &

View File

@ -3,11 +3,11 @@ FROM node:alpine
WORKDIR /usr/app WORKDIR /usr/app
COPY package.json . COPY package.json .
COPY . .
RUN yarn RUN yarn
RUN yarn build
COPY . .
EXPOSE 6379 EXPOSE 6379
ENTRYPOINT ["node"] ENTRYPOINT ["yarn app"]

View File

@ -7,4 +7,4 @@
# DON'T EDIT THIS! # DON'T EDIT THIS!
currentLoc=$(pwd) currentLoc=$(pwd)
yarn app init --name "stockpile-db" --port 6379 --configpath $currentLoc/stockpile.json --dumppath $currentLoc/db/stockpile.db yarn app init --name "stockpile-db" --port 6379 --configpath $currentLoc/stockpile.json --dumppath $currentLoc/db/stockpile.db
exec yarn app start --configpath $currentLoc/stockpile.json yarn app start --configpath $currentLoc/stockpile.json