【发布时间】:2019-07-10 09:01:06
【问题描述】:
我看过类似的帖子,但没有人使用 docker。我在进行 docker build 时遇到问题:
运行命令时:
docker build -t frontend -f frontendDockerfile .
我明白了:
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
这是我的前端DockerFile:
FROM node
COPY /frontend/Express /Express
WORKDIR /Express
#RUN npm install && npm rebuild node-sass && npm run webpack
RUN npm install && npm run webpack
CMD ["npm", "start"]
EXPOSE 3000
如果有人可以帮助我,我将非常感激。
【问题讨论】: