Block a user
sniper (latest)
Published 2026-03-16 17:03:50 -04:00 by thread
Installation
docker pull git.impulsedetroit.net/thread/sniper:latestsha256:f227bab6eca8e9eb4f2dbaa98f8202187ccf511ab3486cbeb58d99a51307dd39
Image Layers
| ADD alpine-minirootfs-3.23.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ENV OTP_VERSION=28.4.1 REBAR3_VERSION=3.26.0 |
| LABEL org.opencontainers.image.version=28.4.1 |
| RUN /bin/sh -c set -xe && OTP_DOWNLOAD_URL="https://github.com/erlang/otp/releases/download/OTP-${OTP_VERSION}/otp_src_${OTP_VERSION}.tar.gz" && OTP_DOWNLOAD_SHA256="fb2aa0bd8d4118a275895d4a0ea5b24e40e9e1e27a7b29e001377d7660fd9ecf" && REBAR3_DOWNLOAD_SHA256="a151dc4a07805490e9f217a099e597ac9774814875f55da2c66545c333fdff64" && apk add --no-cache --virtual .fetch-deps curl ca-certificates && curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" && echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - && apk add --no-cache --virtual .build-deps dpkg-dev dpkg gcc g++ libc-dev linux-headers make autoconf ncurses-dev openssl-dev unixodbc-dev lksctp-tools-dev tar && export ERL_TOP="/usr/src/otp_src_${OTP_VERSION%%@*}" && mkdir -vp $ERL_TOP && tar -xzf otp-src.tar.gz -C $ERL_TOP --strip-components=1 && rm otp-src.tar.gz && ( cd $ERL_TOP && ./otp_build autoconf && gnuArch="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)" && ./configure --build="$gnuArch" && make -j$(getconf _NPROCESSORS_ONLN) && make install ) && rm -rf $ERL_TOP && find /usr/local -regex '/usr/local/lib/erlang/\(lib/\|erts-\).*/\(man\|doc\|obj\|c_src\|emacs\|info\|examples\)' | xargs rm -rf && find /usr/local -name src | xargs -r find | grep -v '\.hrl$' | xargs rm -v || true && find /usr/local -name src | xargs -r find | xargs rmdir -vp || true && scanelf --nobanner -E ET_EXEC -BF '%F' --recursive /usr/local | xargs -r strip --strip-all && scanelf --nobanner -E ET_DYN -BF '%F' --recursive /usr/local | xargs -r strip --strip-unneeded && runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )" && REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" && curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" && echo "${REBAR3_DOWNLOAD_SHA256} rebar3-src.tar.gz" | sha256sum -c - && mkdir -p /usr/src/rebar3-src && tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 && rm rebar3-src.tar.gz && cd /usr/src/rebar3-src && HOME=$PWD ./bootstrap && install -v ./rebar3 /usr/local/bin/ && rm -rf /usr/src/rebar3-src && apk add --virtual .erlang-rundeps $runDeps lksctp-tools ca-certificates && apk del .fetch-deps .build-deps # buildkit |
| CMD ["erl"] |
| RUN /bin/sh -c apk add --no-cache libstdc++ ncurses-libs # buildkit |
| WORKDIR /app |
| RUN /bin/sh -c chown nobody /app # buildkit |
| COPY --chown=nobody:root /app/_build/prod/rel/sniper ./ # buildkit |
| USER nobody |
| ENV PHX_SERVER=true LANG=en_US.UTF-8 |
| EXPOSE map[4000/tcp:{}] |
| CMD ["/bin/sh" "-c" "/app/bin/migrate && /app/bin/server"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.version | 28.4.1 |