当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 100

智能时代/gateway
暂停

forked from fagongzi/gateway
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile-proxy 590 Bytes
一键复制 编辑 原始数据 按行查看 历史
张旭 提交于 2018-03-27 13:53 . dev: change base docker image
FROM alpine:latest
ADD ./dist/proxy /usr/local/bin/
RUN mkdir -p /var/proxy/
RUN mkdir -p /var/lib/proxy/
# Alpine Linux doesn't use pam, which means that there is no /etc/nsswitch.conf,
# but Golang relies on /etc/nsswitch.conf to check the order of DNS resolving
# (see https://github.com/golang/go/commit/9dee7771f561cf6aee081c0af6658cc81fac3918)
# To fix this we just create /etc/nsswitch.conf and add the following line:
RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
EXPOSE 80
# Define default command.
ENTRYPOINT ["/usr/local/bin/proxy"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rxtech/gateway.git
[email protected]:rxtech/gateway.git
rxtech
gateway
gateway
master

搜索帮助