に流星アプリを構築するとき、私はドッキングウィンドウ
RUN ["meteor", "build", "--directory", "/meteor_app"]
とdockerfileに流星アプリのイメージを構築し、次のエラー会った「あなたはrootとして流星を実行した」:--unsafe--perm
後
Step 11 : RUN meteor build --directory /meteor_app
---> Running in 2be64a8e21df
You are attempting to run Meteor as the "root" user. If you are developing,
this is almost certainly *not* what you want to do and will likely result in
incorrect file permissions. However, if you are running this in a build process
(CI, etc.) or you are absolutely sure you know what you are doing, add the
`--unsafe-perm` flag to this command to proceed.
The command 'meteor build --directory /meteor_app' returned a non-zero code: 1
{"exitCode":8, "message":"docker build failed or timeout "}
をフラグが追加されました:
RUN ["meteor", "--unsafe-perm", "build", "--directory", "/meteor_app"]
エラーがまだ存在する:
を210Step 11 : RUN meteor --unsafe-perm build --directory /meteor_app
---> Running in c0e79de335c7
You have run Meteor as root. Your permissions in your app directory will be
incorrect if you ever attempt to perform any Meteor tasks as your non-root
user. You probably didn't want this, but you can fix it by running the
following from the root of your project:
sudo chown -Rh <username> .meteor/local
'/meteor_app' is not a Meteor command. See 'meteor --help'.
The command 'meteor --unsafe-perm build --directory /meteor_app' returned a non-zero code: 1
{"exitCode":8, "message":"docker build failed or timeout "}
これを修正するにはどうすればよいですか?
このエラーはMeteor 1.4.2の後に発生しますが、ドキュメントが見つかりませんでした。
ありがとうございます!
これを行う方法の手順を教えてください。私はmeteorhacks/meteordを使用しています:onbuild –