| ADD alpine-minirootfs-3.17.10-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ARG ALPINE_VERSION=3.17.10 |
| ENV LANG=C.UTF-8 |
| COPY /usr/share/zoneinfo/UTC /etc/localtime # buildkit |
| RUN |1 ALPINE_VERSION=3.17.10 /bin/sh -c echo ${ALPINE_VERSION} | cut -d . -f 1,2 | xargs -I {} echo https://alpine.sutty.nl/alpine/v{}/sutty | tee -a /etc/apk/repositories # buildkit |
| RUN |1 ALPINE_VERSION=3.17.10 /bin/sh -c wget https://alpine.sutty.nl/alpine/sutty.pub -O /etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub # buildkit |
| LABEL org.opencontainers.image.authors=f@sutty.nl |
| ENV EMAIL=monit@sutty.nl |
| ENV EMAIL_FROM=monit@sutty.nl |
| ENV MMONIT=mmmonit.athshe.sutty.nl |
| ENV CREDENTIALS=mmmonit:mmmonit.athshe.sutty.nl |
| RUN /bin/sh -c apk add --no-cache tini monit knsupdate # buildkit |
| RUN /bin/sh -c install -dm 2750 -o root -g root /etc/monit.d # buildkit |
| RUN /bin/sh -c install -dm 2750 -o root -g root /etc/monit.d/external/ # buildkit |
| RUN /bin/sh -c install -dm 2750 -o root -g root /var/lib/monit # buildkit |
| COPY /etc/monitrc /etc/monitrc # buildkit |
| COPY ./nsupdate.sh /usr/local/bin/nsupdate # buildkit |
| COPY ./whatsmyip6.sh /usr/local/bin/whatsmyip6 # buildkit |
| COPY ./whatsmydefaulteth.sh /usr/local/bin/whatsmydefaulteth # buildkit |
| COPY ./syslogize.sh /usr/local/bin/syslogize # buildkit |
| COPY ./zeroconf.sh /usr/local/bin/zeroconf # buildkit |
| COPY ./zeroconf.conf /etc/zeroconf.conf # buildkit |
| EXPOSE map[2812/tcp:{}] |
| ENTRYPOINT ["/sbin/tini" "--"] |
| CMD ["/usr/bin/monit"] |
| LABEL org.opencontainers.image.authors=f@sutty.nl |
| ARG RUBY_VERSION=3.1 |
| ARG RUBY_PATCH=5 |
| RUN |2 RUBY_VERSION=3.1 RUBY_PATCH=5 /bin/sh -c apk add --no-cache tzdata ruby~${RUBY_VERSION}.${RUBY_PATCH} && rm /usr/lib/ruby/${RUBY_VERSION}.0/rubygems.rb # buildkit |
| RUN |2 RUBY_VERSION=3.1 RUBY_PATCH=5 /bin/sh -c apk add --no-cache ruby-json ruby-bigdecimal ruby-rake ruby-bundler ruby-irb ruby-io-console ruby-etc # buildkit |
| COPY /usr/lib/ruby/3.1.0/rubygems.rb /usr/lib/ruby/3.1.0/ # buildkit |
| ENTRYPOINT [] |
| CMD [] |
| ARG ALPINE_VERSION=3.17.10 |
| LABEL org.opencontainers.image.authors=f@sutty.nl |
| ENV RAILS_ENV=production |
| RUN |1 ALPINE_VERSION=3.17.10 /bin/sh -c getent group 82 || addgroup -g 82 -S www-data # buildkit |
| RUN |1 ALPINE_VERSION=3.17.10 /bin/sh -c adduser -s /bin/sh -G www-data -h /srv -D rails # buildkit |
| RUN |1 ALPINE_VERSION=3.17.10 /bin/sh -c install -dm 750 -o rails -g www-data /srv # buildkit |
| RUN |1 ALPINE_VERSION=3.17.10 /bin/sh -c apk add --no-cache jemalloc daemonize libxslt libxml2 # buildkit |
| RUN |1 ALPINE_VERSION=3.17.10 /bin/sh -c gem install --no-document --no-user-install foreman # buildkit |
| COPY ./monit.conf /etc/monit.d/rails.conf # buildkit |
| COPY ./Procfile /etc/Procfile # buildkit |
| COPY ./entrypoint.sh /usr/local/bin/rails # buildkit |
| VOLUME [/srv] |
| EXPOSE map[3000/tcp:{}] |
| EXPOSE map[9394/tcp:{}] |
| ENTRYPOINT ["/sbin/tini" "--"] |
| CMD ["/usr/bin/monit"] |
| ARG PANDOC_VERSION=2.18 |
| ENV RAILS_ENV=production |
| |1 PANDOC_VERSION=2.18 /bin/sh -c apk add --no-cache libxslt libxml2 postgresql-libs libssh2 rsync git jpegoptim vips tectonic oxipng git-lfs openssh-client yarn daemonize ruby-webrick postgresql-client dateutils file vips-heif |
| |1 PANDOC_VERSION=2.18 /bin/sh -c gem install --no-document --no-user-install foreman |
| |1 PANDOC_VERSION=2.18 /bin/sh -c wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O - | tar --strip-components 1 -xvzf - pandoc-${PANDOC_VERSION}/bin/pandoc && mv /bin/pandoc /usr/bin/pandoc |
| |1 PANDOC_VERSION=2.18 /bin/sh -c apk add npm && npm install -g pnpm@~7 && apk del npm |
| COPY file:5d01b7c93295e453061107673abc0acc3c52765549211b6f26de015e5386b61a in /etc/monit.d/sutty.conf |
| VOLUME [/srv] |
| EXPOSE 3000 |
| EXPOSE 9394 |