【发布时间】:2019-03-22 10:05:44
【问题描述】:
在 Dockerfile 中:
FROM node:8
RUN apt-get update && apt-get install -y \
nginx
我想我通过这种方式得到了一个非常旧的 nginx 版本。如何安装较新的版本,例如 1.15.7? 我可以这样做吗:
FROM node:8
RUN apt-get update && apt-get install -y \
curl \
# Where to download the nginx source? Pass the download path below
&& curl -sL \
&& apt-get install -y nginx
【问题讨论】:
标签: node.js docker nginx apt-get