File size: 619 Bytes
596affe c47d8d6 0a10ad5 596affe 4ee7075 596affe 8fbfdb6 596affe 247a4d5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
FROM node:lts AS BUILD_IMAGE
WORKDIR /app
RUN git clone https://github.com/dark2star/qwen-free-api.git
RUN chmod 777 /app
RUN mv ./qwen-free-api/* /app
RUN ls /app
RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
FROM node:lts-alpine
COPY --from=BUILD_IMAGE /app/configs /app/configs
COPY --from=BUILD_IMAGE /app/package.json /app/package.json
COPY --from=BUILD_IMAGE /app/dist /app/dist
COPY --from=BUILD_IMAGE /app/public /app/public
COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
WORKDIR /app
RUN chmod 777 /app
ENV TZ=Asia/Shanghai
EXPOSE 8000
CMD ["npm", "start"] |