Dockerfile 备份
dotnet core app
FROM microsoft/dotnet:1.1.0-runtime
WORKDIR /mvcApp
COPY ./out .
ENTRYPOINT ["dotnet", "mvcApp.dll"]
EXPOSE 5000
ngrok
FROM scratch
DOCKER_HOST tcp://10.116.200.147:4243
COPY ngrokd /
EXPOSE 80 443 4443
CMD ["/ngrokd", "-domain=guorenjun.com.cn"]
#CMD ["/ngrokd", "-httpAddr=:81", "-httpsAddr=:444", "-domain=guorenjun.com.cn"]
cnblogs_app
FROM scratch
COPY linux_amd64 /
EXPOSE 5000
CMD ["/cnblogs"]
sudo docker build -t cnblogs_app:1.0.0 .
sudo docker run --name cnblogs_app100 -v /mnt/xvdb1/www/data/cnblogs_data/data/:/data:rw -v /mnt/xvdb1/www/data/cnblogs_data/conf.json:/conf.json:ro -p 4000:5000 -d cnblogs_app:1.0.0