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\" ]" + ] +}