hastebin (latest)
Published 2024-03-15 13:31:34 +01:00 by christian
Installation
docker pull gitea.haschek.at/christian/hastebin:latest
sha256:e309160094ccbc6c7ae629d640fb24bfc896018ae638752b57614184c43aabe1
Image Layers
ADD file:4c5e0bec5f780d9c6bfbafcb9e6ed641781dd7f7c2853a0c49d6613e9fef9516 in / |
CMD ["bash"] |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl netbase wget ; rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -ex; if ! command -v gpg > /dev/null; then apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr ; rm -rf /var/lib/apt/lists/*; fi |
/bin/sh -c apt-get update && apt-get install -y --no-install-recommends bzr git mercurial openssh-client subversion procps && rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev $( if apt-cache show 'default-libmysqlclient-dev' 2>/dev/null | grep -q '^Version:'; then echo 'default-libmysqlclient-dev'; else echo 'libmysqlclient-dev'; fi ) ; rm -rf /var/lib/apt/lists/* |
/bin/sh -c groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node |
ENV NODE_VERSION=16.15.1 |
/bin/sh -c ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64';; ppc64el) ARCH='ppc64le';; s390x) ARCH='s390x';; arm64) ARCH='arm64';; armhf) ARCH='armv7l';; i386) ARCH='x86';; *) echo "unsupported architecture"; exit 1 ;; esac && set -ex && for key in 4ED778F539E3634C779C87C6D7062848A1AB005C 141F07595B7B3FFE74309A937405533BE57C7D57 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 74F12602B6F1C4E913FAA37AD3A89613643B6201 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 61FC681DFB92A079F1685E77973F295594EC4689 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C DD8F2338BAE7501E3DD5AC78C273792F7D83545D A48C2BEE680E841632CD4E44F07496B3EB3C1762 108F52B48DB57BB0CC439B2997B01419BD92F80A B9E2F5981AA6E0CD28160D9FF13993A75599653C ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version |
ENV YARN_VERSION=1.22.19 |
/bin/sh -c set -ex && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && yarn --version |
COPY file:4d192565a7220e135cab6c77fbc1c73211b69f3d9fb37e62857b2c6eb9363d51 in /usr/local/bin/ |
ENTRYPOINT ["docker-entrypoint.sh"] |
CMD ["node"] |
RUN /bin/sh -c mkdir -p /usr/src/app && chown node:node /usr/src/app # buildkit |
USER node:node |
WORKDIR /usr/src/app |
COPY . . # buildkit |
RUN /bin/sh -c npm install && npm install redis@0.8.1 && npm install pg@8.11.3 && npm install memcached@2.2.2 && npm install aws-sdk@2.814.0 && npm install rethinkdbdash@2.3.31 # buildkit |
ENV STORAGE_TYPE=memcached STORAGE_HOST=127.0.0.1 STORAGE_PORT=11211 STORAGE_EXPIRE_SECONDS=2592000 STORAGE_DB=2 STORAGE_AWS_BUCKET= STORAGE_AWS_REGION= STORAGE_USERNAME= STORAGE_PASSWORD= STORAGE_FILEPATH= |
ENV LOGGING_LEVEL=verbose LOGGING_TYPE=Console LOGGING_COLORIZE=true |
ENV HOST=0.0.0.0 PORT=7777 KEY_LENGTH=10 MAX_LENGTH=400000 STATIC_MAX_AGE=86400 RECOMPRESS_STATIC_ASSETS=true |
ENV KEYGENERATOR_TYPE=phonetic KEYGENERATOR_KEYSPACE= |
ENV RATELIMITS_NORMAL_TOTAL_REQUESTS=500 RATELIMITS_NORMAL_EVERY_MILLISECONDS=60000 RATELIMITS_WHITELIST_TOTAL_REQUESTS= RATELIMITS_WHITELIST_EVERY_MILLISECONDS= RATELIMITS_WHITELIST=example1.whitelist,example2.whitelist RATELIMITS_BLACKLIST_TOTAL_REQUESTS= RATELIMITS_BLACKLIST_EVERY_MILLISECONDS= RATELIMITS_BLACKLIST=example1.blacklist,example2.blacklist |
ENV DOCUMENTS=about=./about.md |
EXPOSE map[7777/tcp:{}] |
STOPSIGNAL SIGINT |
ENTRYPOINT ["bash" "docker-entrypoint.sh"] |
HEALTHCHECK &{["CMD" "sh" "-c" "echo -n 'curl localhost:7777... '; ( curl -sf localhost:7777 > /dev/null ) && echo OK || ( echo Fail && exit 2 )"] "30s" "30s" "5s" '\x03'} |
CMD ["npm" "start"] |