jiezaizone edited a comment on issue #108: npm run build 后访问异常
URL: 
https://github.com/apache/incubator-apisix-dashboard/issues/108#issuecomment-569471951
 
 
   > 是 `npm run build:prod` 吧
   
   我自己不想输入prod 修改了命令。实际执行了`npm run build:prod`。
   ```
   FROM alpine:latest AS build-stage
   MAINTAINER jiezai
   # create destination directory
   RUN mkdir -p /usr/src/app/
   WORKDIR /usr/src/app
   # install nodejs
   RUN apk add --no-cache --update nodejs nodejs-npm git yarn
   
   RUN git clone https://github.com/apache/incubator-apisix-dashboard.git
   WORKDIR /usr/src/app/incubator-apisix-dashboard
   RUN yarn install
   RUN yarn run build:prod
   
   FROM nginx as production-stage
   MAINTAINER jiezai
   RUN mkdir /app
   COPY --from=build-stage /usr/src/app/incubator-apisix-dashboard/dist /app
   COPY nginx.conf /etc/nginx/nginx.conf
   CMD ["nginx", "-g", "daemon off;"]
   
   ```
   新打了镜像访问报错,本地就更新了代码试一下,果然一样的异常,你们可以试一下。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to