neilpang 4 lat temu
rodzic
commit
d695768357
3 zmienionych plików z 5 dodań i 3 usunięć
  1. 3 1
      Dockerfile
  2. 2 1
      Dockerfile.alpine
  3. 0 1
      Procfile

+ 3 - 1
Dockerfile

@@ -1,4 +1,4 @@
-FROM jwilder/nginx-proxy:latest
+FROM nginxproxy/nginx-proxy:latest
 
 
 RUN apt-get update \
 RUN apt-get update \
  && apt-get install -y -q --no-install-recommends \
  && apt-get install -y -q --no-install-recommends \
@@ -18,6 +18,8 @@ EXPOSE 443
 
 
 COPY nginx.tmpl /app/
 COPY nginx.tmpl /app/
 COPY Procfile /app/
 COPY Procfile /app/
+RUN  echo "cron: cron -f" >>/app/Procfile
+
 COPY updatessl.sh /app/
 COPY updatessl.sh /app/
 
 
 RUN chmod +x /app/updatessl.sh
 RUN chmod +x /app/updatessl.sh

+ 2 - 1
Dockerfile.alpine

@@ -1,4 +1,4 @@
-FROM jwilder/nginx-proxy:alpine
+FROM nginxproxy/nginx-proxy:alpine
 
 
 
 
 ENV AUTO_UPGRADE=1
 ENV AUTO_UPGRADE=1
@@ -12,6 +12,7 @@ EXPOSE 443
 
 
 COPY nginx.tmpl /app/
 COPY nginx.tmpl /app/
 COPY Procfile /app/
 COPY Procfile /app/
+RUN  echo "cron: crond -f" >>/app/Procfile
 COPY updatessl.sh /app/
 COPY updatessl.sh /app/
 
 
 RUN chmod +x /app/updatessl.sh
 RUN chmod +x /app/updatessl.sh

+ 0 - 1
Procfile

@@ -1,3 +1,2 @@
 dockergen: docker-gen -watch -notify "/app/updatessl.sh updatessl" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
 dockergen: docker-gen -watch -notify "/app/updatessl.sh updatessl" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
 nginx: nginx
 nginx: nginx
-cron: cron -f || crond -f