This commit is contained in:
Rizky 2024-01-22 01:55:16 +07:00
parent c37241bbe1
commit 537d5cf047
2 changed files with 4 additions and 11 deletions

View File

@ -1,7 +1,6 @@
FROM oven/bun:1.0.18-debian as base
WORKDIR /tmp/repo
COPY . /tmp/repo
WORKDIR /app/prasi/repo
COPY . .
RUN apt-get update
RUN apt-get install git curl gnupg zip unzip -yq
@ -13,12 +12,7 @@ RUN apt-get install nodejs -yq
RUN npm i -g @parcel/watcher node-gyp-build-optional-packages node-gyp pnpm
RUN PATH="/usr/lib/node_modules/npm/bin:$PATH"
RUN bun install
RUN bun run build
WORKDIR /app/prasi/repo
RUN cp -r /tmp/repo /app/prasi/repo
EXPOSE 4550/tcp
CMD [ "bun", "run", "prod" ]
CMD [ "deploy.sh" ]

View File

@ -1,6 +1,5 @@
git reset --hard
git pull
bun run build
bun run db-pull
rm -rf ../data/lmdb
pm2 restart prasi:4550
bun run prod