FROM node:lts-alpine3.19
WORKDIR /modmail
COPY build build
COPY package.json package.json
COPY ./.yarnrc.yml ./.yarnrc.yml
COPY ./.yarn/releases ./.yarn/releases
RUN yarn install
VOLUME [ "/modmail/modmail_cache" ]
# ENTRYPOINT [ "/bin/ash" ]
CMD ["node", "--enable-source-maps", "build/index.js"]
# CMD ["/bin/ash"]