Dockerfile for @tangled.sh/core
@krasovs.ky · 25d ago · plaintext · 39 loc · raw · 0 comments
1FROM docker.io/golang:1.24-alpine3.21 AS build23ENV CGO_ENABLED=145RUN apk add --no-cache gcc musl-dev67WORKDIR /usr/src/app89COPY go.mod go.sum ./10RUN go mod download1112COPY . .13RUN go build -v \14 -o /usr/local/bin/knotserver \15 -ldflags='-s -w -extldflags "-static"' \16 ./cmd/knotserver && \17 go build -v \18 -o /usr/local/bin/keyfetch \19 ./cmd/keyfetch && \20 go build -v \21 -o /usr/local/bin/repoguard \22 ./cmd/repoguard2324FROM docker.io/alpine:3.212526LABEL org.opencontainers.image.title=Tangled27LABEL org.opencontainers.image.description="Tangled is a decentralized and open code collaboration platform, built on atproto."28LABEL org.opencontainers.image.vendor=Tangled.sh29LABEL org.opencontainers.image.licenses=MIT30LABEL org.opencontainers.image.url=https://tangled.sh31LABEL org.opencontainers.image.source=https://tangled.sh/@tangled.sh/core3233COPY --from=build /usr/local/bin/knotserver /usr/local/bin34COPY --from=build /usr/local/bin/keyfetch /usr/local/bin35COPY --from=build /usr/local/bin/repoguard /usr/local/bin3637EXPOSE 55553839CMD ["knotserver"]
login to post a comment