From f3e13d9fa8d043f0dcba917d36007633478ae4c6 Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 16 Oct 2023 05:06:30 +0000 Subject: [PATCH] add captain definiition --- deploy.sh | 2 +- deploy/captain-definition | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 deploy/captain-definition diff --git a/deploy.sh b/deploy.sh index f6bf9c2f..1684caa5 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,2 +1,2 @@ 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 diff --git a/deploy/captain-definition b/deploy/captain-definition new file mode 100644 index 00000000..b0f979b6 --- /dev/null +++ b/deploy/captain-definition @@ -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\" ]" + ] +}