瀏覽代碼

pq-t1: allow custom certificates

keep-around/6bc05096116b1600ef728a51f333838990106741
Kris Kwiatkowski 6 年之前
父節點
當前提交
6bc0509611
共有 3 個檔案被更改,包括 8 行新增6 行删除
  1. +3
    -3
      images/pq-t1/Dockerfile
  2. +5
    -3
      images/pq-t1/Makefile
  3. 二進制
     

+ 3
- 3
images/pq-t1/Dockerfile 查看文件

@@ -2,7 +2,7 @@ FROM buildpack-deps

EXPOSE 443

#ADD cert/privkey.pem /
#ADD cert/fullchain.pem /
ADD certs/privkey.pem /
ADD certs/fullchain.pem /
ADD bin/server /
CMD [ "/server", "-b", "0.0.0.0:443", "-qr" ]
CMD [ "/server", "-b", "0.0.0.0:443", "-qr", "-cert", "/privkey.pem:/fullchain.pem" ]

+ 5
- 3
images/pq-t1/Makefile 查看文件

@@ -1,7 +1,9 @@
NAME=pq-t1
PORT=50510
build:
docker build -t pq-t1 .
docker build -t ${NAME} .
run:
docker run --detach --restart always --name pq-t1 -p 50510:443 pq-t1
docker run --detach --restart always --name ${NAME} -p 50510:443 ${NAME}

restart:
docker restart pq-t1
docker restart ${NAME}

二進制
查看文件


Loading…
取消
儲存