mirror of
https://github.com/kevinthedang/discord-ollama.git
synced 2026-09-23 17:08:58 -04:00
20 lines
385 B
Docker
20 lines
385 B
Docker
# use node LTS image for version 24
|
|
FROM node:krypton-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"]
|