【发布时间】:2018-08-15 16:47:01
【问题描述】:
我创建了一个 Dockerfile 用于创建 docker 容器,该容器可用于使用 mup 部署 Meteor 应用程序。
FROM node:8.11.3-stretch
MAINTAINER Pavan Kumar
RUN npm install npm@latest -g
RUN npm install -g mup
RUN curl https://install.meteor.com/ | sh
RUN export METEOR_ALLOW_SUPERUSER=true
RUN adduser --disabled-password --gecos '' docker_meteor
USER docker_meteor
现在我使用上面的 docker 镜像在 bitbucket 管道中部署到我的服务器
pipelines:
branches:
release:
- step:
script:
- npm install
- mkdir .deploy
- cd .deploy
- echo $MUP_JS > mup.js
- echo $SETTINGS_JSON > settings.json
- mup deploy
现在问题出现在最后一行,即 mup deploy,我收到以下消息。
This is your first time using Meteor!
Installing a Meteor distribution in your home directory.
Downloading Meteor distribution
下载 Meteor 需要很多时间。所以我想知道。
-
Downloading Meteor distribution是什么意思,而我已经在 Docker 容器中安装了 Meteor? - 我应该在 Dockerfile 中做什么,以便创建 docker 映像并使用所有 Meteor 分发所需的运行
mup deploy
【问题讨论】:
-
是不是因为为root用户安装了meteor并且管道以
docker_meteor运行?我最终将流星安装也放入管道缓存中,以用于包之类的东西,这也可能涵盖安装部分