2017-12-20 18:02:37 -05:00
|
|
|
FROM jc21/nginx-proxy-manager-base
|
|
|
|
|
2018-04-15 22:10:12 -04:00
|
|
|
MAINTAINER Jamie Curnow <jc@jc21.com>
|
|
|
|
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
|
|
|
|
|
2017-12-20 18:02:37 -05:00
|
|
|
ENV SUPPRESS_NO_CONFIG_WARNING=1
|
|
|
|
ENV S6_FIX_ATTRS_HIDDEN=1
|
|
|
|
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf
|
|
|
|
|
|
|
|
# root filesystem
|
|
|
|
COPY rootfs /
|
|
|
|
|
|
|
|
# s6 overlay
|
|
|
|
RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.21.2.1/s6-overlay-amd64.tar.gz" \
|
|
|
|
&& tar xzf /tmp/s6-overlay-amd64.tar.gz -C /
|
|
|
|
|
|
|
|
# App
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
|
|
|
|
#ADD LICENCE /srv/manager/LICENCE
|
|
|
|
#ADD README.md /srv/manager/README.md
|
|
|
|
ADD manager/dist /srv/manager/dist
|
|
|
|
ADD manager/node_modules /srv/manager/node_modules
|
|
|
|
ADD manager/src/backend /srv/manager/src/backend
|
|
|
|
ADD manager/package.json /srv/manager/package.json
|
|
|
|
|
|
|
|
# Volumes
|
|
|
|
VOLUME [ "/config", "/etc/letsencrypt" ]
|
|
|
|
CMD [ "/init" ]
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://localhost:9876/health || exit 1
|