naopark-backend (sha256:ea17e1e093302e6ded6acc79c56b576248af5109e926ba63ba9cffea15d708bb)
Published 2026-03-07 22:23:22 +01:00 by maxim
Installation
docker pull git.ctrlalt.cat/maxim/naopark-backend@sha256:ea17e1e093302e6ded6acc79c56b576248af5109e926ba63ba9cffea15d708bbsha256:ea17e1e093302e6ded6acc79c56b576248af5109e926ba63ba9cffea15d708bbImage layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400' |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; rm -rf /var/lib/apt/lists/* # buildkit |
| ENV GOLANG_VERSION=1.23.4 |
| 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.* ./ # buildkit |
| RUN /bin/sh -c go mod download # buildkit |
| COPY . ./ # buildkit |
| ENV GOCACHE=/root/.cache/go-build |
| RUN /bin/sh -c go build -v -o server # buildkit |
| EXPOSE [3000/tcp] |
| CMD ["/app/server"] |