changes to src/events/messageCreate.ts, Dockerfile, Modelfile, docker-compose.yml
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user