From 5c7fb7b6985bb39e20b92f5c172f188676a8805d Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 20 Feb 2019 08:25:12 +1000 Subject: [PATCH] Added armv6 Dockerfile --- Dockerfile.armv6 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Dockerfile.armv6 diff --git a/Dockerfile.armv6 b/Dockerfile.armv6 new file mode 100644 index 00000000..c08d09b4 --- /dev/null +++ b/Dockerfile.armv6 @@ -0,0 +1,38 @@ +FROM jc21/nginx-proxy-manager-base:armv6 + +MAINTAINER Jamie Curnow +LABEL maintainer="Jamie Curnow " + +ENV SUPPRESS_NO_CONFIG_WARNING=1 +ENV S6_FIX_ATTRS_HIDDEN=1 +RUN echo "fs.file-max = 65535" > /etc/sysctl.conf + +# Nginx, Node and required packages should already be installed from the base image + +# root filesystem +COPY rootfs / + +# s6 overlay +RUN curl -L -o /tmp/s6-overlay-arm.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.21.8.0/s6-overlay-arm.tar.gz" \ + && tar xzf /tmp/s6-overlay-arm.tar.gz -C / + +# App +ENV NODE_ENV=production + +ADD dist /app/dist +ADD node_modules /app/node_modules +ADD src/backend /app/src/backend +ADD package.json /app/package.json +ADD knexfile.js /app/knexfile.js + +# Volumes +VOLUME [ "/data", "/etc/letsencrypt" ] +CMD [ "/init" ] + +# Ports +EXPOSE 80 +EXPOSE 81 +EXPOSE 443 +EXPOSE 9876 + +HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://localhost:9876/health || exit 1