add captain definiition

This commit is contained in:
Rizky 2023-10-16 05:06:30 +00:00
parent 98fa199ff1
commit f3e13d9fa8
2 changed files with 14 additions and 1 deletions

View File

@ -1,2 +1,2 @@
bun run build bun run build
ssh plansys@web.andromedia.co.id "cd /home/plansys/prasi/app && git reset --hard && git pull && bun run deploy" bun run deploy

13
deploy/captain-definition Normal file
View File

@ -0,0 +1,13 @@
{
"schemaVersion": 2,
"dockerfileLines": [
"FROM oven/bun",
"COPY package.json bun.lockb /temp/prod/",
"RUN cd /temp/prod && bun install --frozen-lockfile --production",
"RUN mkdir -p /temp/prod",
"COPY /temp/prod/node_modules node_modules",
"ENV PORT 80",
"EXPOSE 4550",
"CMD [ \"bun\", \"prod\" ]"
]
}