nginx-proxy-manager/docker/dev/Dockerfile

34 lines
843 B
Docker
Raw Normal View History

FROM jc21/alpine-nginx-full:node
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
ENV SUPPRESS_NO_CONFIG_WARNING=1
ENV S6_FIX_ATTRS_HIDDEN=1
2021-02-05 16:52:24 -05:00
ENV NODE_ENV=production
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
&& apk update \
2020-10-04 19:04:18 -04:00
&& apk add python3 certbot jq \
&& python3 -m ensurepip \
&& rm -rf /var/cache/apk/*
# s6 overlay
2021-02-05 16:52:24 -05:00
COPY scripts/install-s6 /tmp/install-s6
RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -f /tmp/install-s6
EXPOSE 80
EXPOSE 81
EXPOSE 443
2021-02-05 16:52:24 -05:00
COPY docker/rootfs /
ADD backend /app
ADD frontend/dist /app/frontend
COPY global /app/global
WORKDIR /app
RUN yarn install
# Remove frontend service not required for prod, dev nginx config as well
RUN rm -rf /etc/services.d/frontend RUN rm -f /etc/nginx/conf.d/dev.conf
2021-02-05 16:52:24 -05:00
VOLUME [ "/data", "/etc/letsencrypt" ]
ENTRYPOINT [ "/init" ]