【发布时间】:2016-08-22 14:09:05
【问题描述】:
我想知道如何更新我的自定义 Dockerfile 以安装 Node v6.3.1 和 NPM v3.10.6 而不会破坏已经存在的内容。
目前这是我的自定义文件:
FROM ubuntu:16.10
MAINTAINER Fátima Alves
COPY . /my-software
WORKDIR /my-software
RUN apt-get update \
&& \
apt-get install -y \
python-dev \
tesseract-ocr
谢谢!
更新
目前我的dockerfile是这样的:
FROM ubuntu:16.10
MAINTAINER Fátima Alves
COPY ./dist /my-software
COPY ./s3-config.json /my-software
COPY ./_* /my-software
COPY ./node_modules /my-software
WORKDIR /dataextractor
RUN apt-get update \
&& \
apt-get install -y \
curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& apt-get install -y nodejs
并且正在返回:
The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_6.x | bash - && apt-get install -y nodejs' returned a non-zero code: 1
也许我错过了什么?
【问题讨论】:
标签: node.js ubuntu docker dockerfile