From 8ed8aa891063308455d0c20171c124e4e5972787 Mon Sep 17 00:00:00 2001 From: Nut Pinyo Date: Mon, 16 Jan 2023 14:10:03 +0700 Subject: [PATCH 1/5] fix readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdd7200..1812661 100644 --- a/README.md +++ b/README.md @@ -76,13 +76,13 @@ Push the code to the `main` branch, the bot will be automatically deployed to Th To migrate the database, run the following command: ```bash -docker run -e DATABASE_URL=... --rm thinc-org/thinc-discord-bot pnpm run migrate dev +docker run -e DATABASE_URL=... --rm ghcr.io/thinc-org/thinc-discord-bot pnpm prisma migrate dev ``` To run the bot in production mode, run the following command: ```bash -docker run --env-file .env thinc-org/thinc-discord-bot +docker run --env-file .env ghcr.io/thinc-org/thinc-discord-bot ``` > You need to provide the environment variables in `.env` file. From 7ab9beaf4b2bf02be32914e493956270b9baa993 Mon Sep 17 00:00:00 2001 From: Nut Pinyo Date: Mon, 16 Jan 2023 14:10:11 +0700 Subject: [PATCH 2/5] add pnpm in Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 6e16a33..b737456 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ COPY --chown=node:node package.json pnpm-lock.yaml ./ RUN pnpm i --frozen-lockfile --production FROM node:18-alpine As production +RUN npm install -g pnpm # Create app directory WORKDIR /usr/app # Copy the bundled code from the build stage to the production image From b186c72a55fee0beabf6647304a536e913e046a5 Mon Sep 17 00:00:00 2001 From: Nut Pinyo Date: Mon, 16 Jan 2023 14:13:09 +0700 Subject: [PATCH 3/5] add changeset --- .changeset/grumpy-tomatoes-poke.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/grumpy-tomatoes-poke.md diff --git a/.changeset/grumpy-tomatoes-poke.md b/.changeset/grumpy-tomatoes-poke.md new file mode 100644 index 0000000..5d79e5b --- /dev/null +++ b/.changeset/grumpy-tomatoes-poke.md @@ -0,0 +1,5 @@ +--- +'thinc-discord-bot': patch +--- + +Fix README.md and add pnpm in final Docker image From 0f4f3d4edef16ff5033a20ba366c527bb52dd3a8 Mon Sep 17 00:00:00 2001 From: Saenyakorn Siangsanoh <33742791+saenyakorn@users.noreply.github.com> Date: Mon, 16 Jan 2023 14:40:19 +0700 Subject: [PATCH 4/5] Create lovely-moose-compare.md --- .changeset/lovely-moose-compare.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lovely-moose-compare.md diff --git a/.changeset/lovely-moose-compare.md b/.changeset/lovely-moose-compare.md new file mode 100644 index 0000000..5b0cd82 --- /dev/null +++ b/.changeset/lovely-moose-compare.md @@ -0,0 +1,5 @@ +--- +"thinc-discord-bot": patch +--- + +Fix Dockerfile From d4d13e3863b2771a899ebe8effec36be410d3d3c Mon Sep 17 00:00:00 2001 From: Saenyakorn Siangsanoh <33742791+saenyakorn@users.noreply.github.com> Date: Mon, 16 Jan 2023 14:40:40 +0700 Subject: [PATCH 5/5] Delete lovely-moose-compare.md --- .changeset/lovely-moose-compare.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/lovely-moose-compare.md diff --git a/.changeset/lovely-moose-compare.md b/.changeset/lovely-moose-compare.md deleted file mode 100644 index 5b0cd82..0000000 --- a/.changeset/lovely-moose-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thinc-discord-bot": patch ---- - -Fix Dockerfile