Commit d25d4c3d authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

Docker tuning

parent 9551271a
Loading
Loading
Loading
Loading

.dockerignore

0 → 100644
+8 −0
Original line number Diff line number Diff line
/.circleci/
/.git/
/.github/
CHANGELOG.md
Dockerfile
image
README.md
VERSION
+4 −3
Original line number Diff line number Diff line
@@ -9,10 +9,11 @@ FROM nginx:stable
#     rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
#     truncate -s 0 /var/log/*log

COPY entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh && \
COPY wrapper.sh /wrapper.sh
RUN chmod a+x /wrapper.sh && \
    mkdir -p /usr/local/etc/nginx

COPY *.conf.template /usr/local/etc/nginx/

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/wrapper.sh"]
CMD ["nginx", "-g", "daemon off;"]
+2 −2
Original line number Diff line number Diff line
@@ -28,5 +28,5 @@ if [[ -z "${SKIP_HEALTHCHECK}" ]]; then
  curl --silent --fail --max-time 5 --output /dev/null "http://${APP_HOST:-app}:${APP_PORT:-8080}${APP_HEALTHCHECK_PATH:-/health}" || ( echo "Couldn't contact app"; exit 1 )
fi

# run in foreground as pid 1
exec /usr/sbin/nginx -g 'daemon off;' -c /etc/nginx/nginx.conf
# run entrypoint
/docker-entrypoint.sh $@