mirror of
https://github.com/matrixgpt/matrix-chatgpt-bot.git
synced 2024-10-01 01:25:41 -04:00
17 lines
276 B
Docker
17 lines
276 B
Docker
FROM node:20-slim
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json ./
|
|
COPY yarn.lock ./
|
|
RUN yarn install --frozen-lockfile --production && yarn cache clean
|
|
|
|
COPY ./tsconfig.json ./tsconfig.json
|
|
COPY ./src ./src
|
|
RUN yarn build
|
|
|
|
VOLUME /storage
|
|
ENV DATA_PATH="/storage"
|
|
|
|
CMD yarn start
|