2 changed files with 27 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||||
|
npm-debug.log |
||||
|
log |
||||
|
node_modules |
@ -0,0 +1,24 @@ |
|||||
|
FROM node:16 |
||||
|
|
||||
|
RUN npm install -g pnpm@7.1.0 && \ |
||||
|
npm config set registry https://registry.npm.taobao.org |
||||
|
|
||||
|
WORKDIR /usr/src/app |
||||
|
|
||||
|
COPY package.json pnpm-lock.yaml tsconfig*.json ./ |
||||
|
COPY ./packages/hapi-router/dist ./packages/hapi-router/dist |
||||
|
COPY ./packages/hapi-router/package*.json ./packages/hapi-router/ |
||||
|
COPY ./public/js ./public/js |
||||
|
COPY ./public/style ./public/style |
||||
|
COPY ./source ./source |
||||
|
COPY ./template ./template |
||||
|
COPY ./types ./types |
||||
|
COPY .env.production ./ |
||||
|
|
||||
|
|
||||
|
RUN pnpm install && \ |
||||
|
pnpm build |
||||
|
|
||||
|
EXPOSE 3000 |
||||
|
|
||||
|
CMD [ "node", "-r", "dotenv/config dist/main.js", "dotenv_config_path=.env.production" ] |
Loading…
Reference in new issue