Add dockerfile

This commit is contained in:
QiTao Weng 2022-04-10 02:25:38 -05:00
parent 8cd1409eb6
commit 1c55215d9e

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM node:16
RUN yarn global add pnpm
RUN mkdir /app
COPY lib/ /app
RUN rm -f /app/.env
COPY package.json /app
COPY pnpm-lock.yaml /app
RUN cd /app && pnpm install
WORKDIR /app
CMD ["node", "index.js"]