Ver código fonte

style: Dockerfiles linting

Nicolas Duchon 3 anos atrás
pai
commit
8526d918ed
2 arquivos alterados com 11 adições e 11 exclusões
  1. 7 7
      Dockerfile
  2. 4 4
      Dockerfile.alpine

+ 7 - 7
Dockerfile

@@ -41,17 +41,17 @@ LABEL maintainer="Nicolas Duchon <nicolas.duchon@gmail.com> (@buchdag)"
 
 
 # Install wget and install/updates certificates
 # Install wget and install/updates certificates
 RUN apt-get update \
 RUN apt-get update \
- && apt-get install -y -q --no-install-recommends \
-    ca-certificates \
-    wget \
- && apt-get clean \
- && rm -r /var/lib/apt/lists/*
+   && apt-get install -y -q --no-install-recommends \
+   ca-certificates \
+   wget \
+   && apt-get clean \
+   && rm -r /var/lib/apt/lists/*
 
 
 
 
 # Configure Nginx and apply fix for very long server names
 # Configure Nginx and apply fix for very long server names
 RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
 RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
- && sed -i 's/worker_processes  1/worker_processes  auto/' /etc/nginx/nginx.conf \
- && sed -i 's/worker_connections  1024/worker_connections  10240/' /etc/nginx/nginx.conf
+   && sed -i 's/worker_processes  1/worker_processes  auto/' /etc/nginx/nginx.conf \
+   && sed -i 's/worker_connections  1024/worker_connections  10240/' /etc/nginx/nginx.conf
 
 
 # Install Forego + docker-gen
 # Install Forego + docker-gen
 COPY --from=forego /usr/local/bin/forego /usr/local/bin/forego
 COPY --from=forego /usr/local/bin/forego /usr/local/bin/forego

+ 4 - 4
Dockerfile.alpine

@@ -42,13 +42,13 @@ LABEL maintainer="Nicolas Duchon <nicolas.duchon@gmail.com> (@buchdag)"
 
 
 # Install wget and install/updates certificates
 # Install wget and install/updates certificates
 RUN apk add --no-cache --virtual .run-deps \
 RUN apk add --no-cache --virtual .run-deps \
-    ca-certificates bash wget openssl \
-    && update-ca-certificates
+   ca-certificates bash wget openssl \
+   && update-ca-certificates
 
 
 # Configure Nginx and apply fix for very long server names
 # Configure Nginx and apply fix for very long server names
 RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
 RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
- && sed -i 's/worker_processes  1/worker_processes  auto/' /etc/nginx/nginx.conf \
- && sed -i 's/worker_connections  1024/worker_connections  10240/' /etc/nginx/nginx.conf
+   && sed -i 's/worker_processes  1/worker_processes  auto/' /etc/nginx/nginx.conf \
+   && sed -i 's/worker_connections  1024/worker_connections  10240/' /etc/nginx/nginx.conf
 
 
 # Install Forego + docker-gen
 # Install Forego + docker-gen
 COPY --from=forego /usr/local/bin/forego /usr/local/bin/forego
 COPY --from=forego /usr/local/bin/forego /usr/local/bin/forego