kevinthedang / discord-ollama

Discord Bot that utilizes Ollama to interact with any Large Language Models to talk with users and allow them to host/create their own models.
Creative Commons Attribution 4.0 International
72 stars 7 forks source link

Docker Image does not contain BOT_TOKEN and GUILD_ID #99

Open kevinthedang opened 1 month ago

kevinthedang commented 1 month ago

Issue

Solution

References

jobs: Deploy-Image: runs-on: ubuntu-latest environment: release timeout-minutes: 3 steps:

kevinthedang commented 1 month ago

Did some extra thinking:

The Dockerfile might have to change to allow the image to be usable unless there is a way to modify the image locally and allow a user to have their own BOT_TOKEN and GUILD_ID.

# use node LTS image for version 18
FROM node:hydrogen-alpine

# set working directory inside container
WORKDIR /app

# copy package.json and the lock file into the container, and src files
COPY ./src ./src
COPY ./*.json ./
COPY ./.env ./

# install dependencies, breaks
RUN npm install

# build the typescript code
RUN npm run build

# start the application
CMD ["npm", "run", "prod"]