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 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 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.