You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
610 B
24 lines
610 B
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" ]
|