在将docker代码转换为容器代码方面需要帮助

我在逻辑上通过使用nodejs编写的nodejs应用程序容器代码引用在nodejs ansible-container创build代码。 我无法find更改下面的docker代码的确切语法。 有人能帮助我吗?

 RUN npm config set registry http://registry.npmjs.org/ - Set npm RUN npm config set proxy http://prod-proxy-out.xxxx.com:8080 - set proxy using npm RUN tar -xzf *.tgz - untar a existing tar file I tried these options, but they are not working Approach 1: shell: npm config set registry "{{ nodejs_npm_registry }}" when: nodejs_npm_registry != "https://registry.npmjs.org/" Approach 2; - name: Set NPM registry command: 'npm config set registry http://registry.npmjs.org/' Approach used for Untar: unarchive: src: "{{ node_package_url }}" dest: "{{ app_home_path }}" copy: no mode: 0777 

以上都没有工作。 请指导我正确的步骤,以便我可以通过更改docker文件语法继续并运行代码。

Interesting Posts