hometown (latest)

Published 2023-04-05 20:33:54 +01:00 by Nikurasu in Nikurasu/hometown-mastodon

Installation

docker pull dev.cat-enby.club/nikurasu/hometown:latest
sha256:d27f33f159e16fd99060252e28b38d94c70257b335cc09787f248f1ba2fcf24b

About this package

baseimage-alpine-nginx image by linuxserver.io

Image Layers

COPY /root-out/ / # buildkit
ARG BUILD_DATE
ARG VERSION
LABEL build_version=Linuxserver.io version:- 44e1baab-ls41 Build-date:- 2023-03-28T08:28:19+02:00
LABEL maintainer=TheLamer
ENV PS1=$(whoami)@$(hostname):$(pwd)\$ HOME=/root TERM=xterm S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
RUN |2 BUILD_DATE=2023-03-28T08:28:19+02:00 VERSION=44e1baab-ls41 /bin/sh -c echo "**** install runtime packages ****" && apk add --no-cache bash ca-certificates coreutils curl procps shadow tzdata && echo "**** create abc user and make our folders ****" && groupmod -g 1000 users && useradd -u 911 -U -d /config -s /bin/false abc && usermod -G users abc && mkdir -p /app /config /defaults && echo "**** cleanup ****" && rm -rf /tmp/* # buildkit
COPY root/ / # buildkit
ENTRYPOINT ["/init"]
RUN /bin/sh -c echo "**** install build packages ****" && apk add --no-cache apache2-utils git logrotate nano nginx openssl php8 php8-fileinfo php8-fpm php8-json php8-mbstring php8-openssl php8-session php8-simplexml php8-xml php8-xmlwriter php8-zlib && echo "**** configure nginx ****" && echo 'fastcgi_param HTTP_PROXY ""; # https://httpoxy.org/' >> /etc/nginx/fastcgi_params && echo 'fastcgi_param PATH_INFO $fastcgi_path_info; # http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_split_path_info' >> /etc/nginx/fastcgi_params && echo 'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/#connecting-nginx-to-php-fpm' >> /etc/nginx/fastcgi_params && echo 'fastcgi_param SERVER_NAME $host; # Send HTTP_HOST as SERVER_NAME. If HTTP_HOST is blank, send the value of server_name from nginx (default is `_`)' >> /etc/nginx/fastcgi_params && rm -f /etc/nginx/http.d/default.conf && echo "**** configure php ****" && ln -s /usr/bin/php8 /usr/bin/php && sed -i "s#;error_log = log/php8/error.log.*#error_log = /config/log/php/error.log#g" /etc/php8/php-fpm.conf && sed -i "s#user = nobody.*#user = abc#g" /etc/php8/php-fpm.d/www.conf && sed -i "s#group = nobody.*#group = abc#g" /etc/php8/php-fpm.d/www.conf && echo "**** fix logrotate ****" && sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf && sed -i 's#/usr/sbin/logrotate /etc/logrotate.conf#/usr/sbin/logrotate /etc/logrotate.conf -s /config/log/logrotate.status#g' /etc/periodic/daily/logrotate # buildkit
COPY root/ / # buildkit
EXPOSE map[443/tcp:{} 80/tcp:{}]
ARG BUILD_DATE
ARG VERSION
ARG HOMETOWN_VERSION
LABEL build_version=dev.cat-enby.club version:- Build-date:-
LABEL maintainer=Nikurasu
ENV RAILS_ENV=production NODE_ENV=production PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/app/www/bin
RUN |3 BUILD_DATE= VERSION= HOMETOWN_VERSION=v4.0.2+hometown-1.1.1 /bin/sh -c apk add -U --upgrade --no-cache ffmpeg file icu-libs imagemagick libpq libidn nodejs ruby ruby-bundler yarn && apk add --no-cache --virtual=build-dependencies build-base g++ gcc icu-dev libidn-dev libpq-dev libxml2-dev libxslt-dev openssl-dev npm ruby-dev && echo "**** install mastodon ****" && mkdir -p /app/www && if [ -z ${HOMETOWN_VERSION+x} ]; then HOMETOWN_VERSION=$(curl -sX GET "https://api.github.com/repos/hometown-fork/hometown/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]'); fi && curl -s -o /tmp/mastodon.tar.gz -L "https://github.com/hometown-fork/hometown/archive/refs/tags/${HOMETOWN_VERSION}.tar.gz" && tar xf /tmp/mastodon.tar.gz -C /app/www/ --strip-components=1 && cd /app/www && bundle config set --local deployment 'true' && bundle config set --local without 'development test' && bundle config set silence_root_warning true && bundle install -j"$(nproc)" && yarn install --pure-lockfile && OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder rails assets:precompile && echo "**** cleanup ****" && apk del --purge build-dependencies && yarn cache clean && rm -rf /tmp/* # buildkit
COPY root/ / # buildkit
EXPOSE map[443/tcp:{} 80/tcp:{}]
VOLUME [/config]

Labels

Key Value
build_version dev.cat-enby.club version:- Build-date:-
maintainer Nikurasu
org.opencontainers.image.authors linuxserver.io
org.opencontainers.image.created 2023-03-30T07:55:28+02:00
org.opencontainers.image.description baseimage-alpine-nginx image by linuxserver.io
org.opencontainers.image.documentation https://docs.linuxserver.io/images/docker-baseimage-alpine-nginx
org.opencontainers.image.licenses GPL-3.0-only
org.opencontainers.image.ref.name 99bac9c16c421d3cc148baf9cfc457dabf40ee5a
org.opencontainers.image.revision 99bac9c16c421d3cc148baf9cfc457dabf40ee5a
org.opencontainers.image.source https://github.com/linuxserver/docker-baseimage-alpine-nginx
org.opencontainers.image.title Baseimage-alpine-nginx
org.opencontainers.image.url https://github.com/linuxserver/docker-baseimage-alpine-nginx/packages
org.opencontainers.image.vendor linuxserver.io
org.opencontainers.image.version e2c57eef-ls41
Details
Container
2023-04-05 20:33:54 +01:00
0
OCI / Docker
linux/amd64
linuxserver.io
GPL-3.0-only
288 MiB
Versions (2) View all
latest 2023-04-05