当使用geoffreybooth / meteor

编程入门 行业动态 更新时间:2024-10-11 07:29:58

当使用geoffreybooth / <a href=https://www.elefans.com/category/jswz/34/1733081.html style=meteor"/>

当使用geoffreybooth / meteor

我是Docker的新手。

我正在尝试使用;

我在步骤12出现错误:

Step 12/14 : RUN bash $SCRIPTS_FOLDER/build-meteor-npm-dependencies.sh
 ---> Running in 82265ff01645
gyp ERR! find Python 
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
...
ERROR: Service 'app' failed to build: The command '/bin/sh -c bash $SCRIPTS_FOLDER/build-meteor-npm-dependencies.sh' returned a non-zero code: 1

Dockerfile:

FROM geoffreybooth/meteor-base:1.8.3
COPY ./app/package*.json $APP_SOURCE_FOLDER/
RUN bash $SCRIPTS_FOLDER/build-app-npm-dependencies.sh
COPY ./app $APP_SOURCE_FOLDER/
RUN bash $SCRIPTS_FOLDER/build-meteor-bundle.sh

FROM node:13.6.0-alpine 
ENV APP_BUNDLE_FOLDER /opt/bundle
ENV SCRIPTS_FOLDER /docker
RUN apk --no-cache add \
        bash \
        ca-certificates

COPY --from=0 $SCRIPTS_FOLDER $SCRIPTS_FOLDER/

COPY --from=0 $APP_BUNDLE_FOLDER/bundle $APP_BUNDLE_FOLDER/bundle/

# step 12 which fails
RUN bash $SCRIPTS_FOLDER/build-meteor-npm-dependencies.sh

ENTRYPOINT ["/docker/entrypoint.sh"]

CMD ["node", "main.js"]

不确定失败是否是因为

gyp ERR! find Python

ERROR: Service 'app' failed to build: The command '/bin/sh -c bash $SCRIPTS_FOLDER/build-meteor-npm-dependencies.sh' returned a non-zero code: 1

但是文件build-meteor-npm-dependencies.sh位于正确的文件夹中。

TIA。

我是Docker的新手。我正在尝试使用,在步骤12上出现错误:步骤12/14:运行bash $ SCRIPTS_FOLDER / build-。 。

回答如下:

我只是继续使用默认设置,它可以正常工作。

更多推荐

当使用geoffreybooth / meteor

本文发布于:2024-05-07 21:12:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1757276.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:geoffreybooth   meteor

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!