changes to src/events/messageCreate.ts, Dockerfile, Modelfile, docker-compose.yml

This commit is contained in:
2025-05-18 16:19:02 -04:00
parent d361702f6b
commit 84870cc493
3 changed files with 17 additions and 34 deletions

View File

@@ -1,19 +1,8 @@
# use node LTS image for version 22
FROM node:jod-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
COPY package.json package-lock.json ./
RUN npm install
# build the typescript code
COPY src/ ./src/
COPY src/personality.json ./src/
RUN npm run build
# start the application
CMD ["npm", "run", "prod"]