mirror of
https://github.com/kevinthedang/discord-ollama.git
synced 2025-12-12 11:56:06 -05:00
* minor package update and env * added docker scripts * added working docker compose * fixed docker container bridge
19 lines
363 B
Docker
19 lines
363 B
Docker
# use node LTS image for version 18
|
|
FROM node:18.18.2
|
|
|
|
# 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 ./
|
|
|
|
# install dependencies, breaks
|
|
RUN npm install
|
|
|
|
# build the typescript code
|
|
RUN npm run build
|
|
|
|
# start the application
|
|
CMD ["npm", "run", "prod"]
|