matrix-chatgpt-bot/Dockerfile

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