NuxtJS
入门指南
C:\Users\JohnDoe\Documents\demo-nuxt-edgegap> yarnC:\Users\JohnDoe\Documents\demo-nuxt-edgegap> yarn dev需求
将应用容器化
FROM node:lts as builder
WORKDIR /app
COPY . .
RUN yarn install \
--prefer-offline \
--frozen-lockfile \
--non-interactive \
--production=false
RUN yarn build
RUN rm -rf node_modules && \
NODE_ENV=production yarn install \
--prefer-offline \
--pure-lockfile \
--non-interactive \
--production=true
FROM node:lts
WORKDIR /app
COPY --from=builder /app .
ENV HOST 0.0.0.0
EXPOSE 80
CMD [ "yarn", "start" ]在 Edgegap 上部署您的应用
通过 Edgegap 仪表板部署应用:




通过 Edgegap 的 API 部署应用

最后更新于
这有帮助吗?

