Block a user
piles (1ce52cec645c715a79de55cab8b0fe6e926df32f)
Published 2026-01-09 20:59:05 +01:00 by krizz
Installation
docker pull thoth.krizz.org/krizz/piles:1ce52cec645c715a79de55cab8b0fe6e926df32fsha256:64d0f059eb8a5f2cddc1597bfba1cc51dc26bcbe94106de75f0fbf6b765e8f6a
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1766966400' |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; apt-get dist-clean # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; apt-get dist-clean # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; dpkgArch="$(dpkg --print-architecture)"; if [ "$dpkgArch" = 'arm64' ]; then apt-get install -y --no-install-recommends binutils-gold; fi; rm -rf /var/lib/apt/lists/* # buildkit |
| ENV GOLANG_VERSION=1.24.11 |
| ENV GOTOOLCHAIN=local |
| ENV GOPATH=/go |
| ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| COPY /target/ / # buildkit |
| RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
| WORKDIR /go |
| WORKDIR /app |
| COPY go.mod go.sum ./ # buildkit |
| RUN /bin/sh -c go mod download # buildkit |
| COPY . . # buildkit |
| VOLUME [/data] |
| EXPOSE [8082/tcp] |
| ARG PILES_VERSION |
| ARG PILES_COMMITHASH |
| ENV PILES_VERSION= PILES_COMMITHASH= |
| RUN |2 PILES_VERSION= PILES_COMMITHASH= /bin/sh -c go build -o piles ./cmd/server/main.go # buildkit |
| CMD ["./piles"] |