A virtual jailed shell environment for Go apps backed by an io/fs#FS.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: add docker manifest for sophia

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 57b10a8b d1efccde

+53
+22
docker-bake.hcl
··· 1 + variable "ALPINE_VERSION" { default = "3.23" } 2 + variable "GO_VERSION" { default = "1.26" } 3 + 4 + group "default" { 5 + targets = [ 6 + "sophia", 7 + ] 8 + } 9 + 10 + target "sophia" { 11 + args = { 12 + ALPINE_VERSION = null 13 + GO_VERSION = null 14 + } 15 + context = "." 16 + dockerfile = "./docker/sophia.Dockerfile" 17 + platforms = [ "linux/amd64", "linux/arm64" ] 18 + pull = true 19 + tags = [ 20 + "ghcr.io/xe/kefka/sophia:main" 21 + ] 22 + }
+31
docker/sophia.Dockerfile
··· 1 + ARG GO_VERSION=1.26 2 + ARG ALPINE_VERSION=3.23 3 + 4 + FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine AS build 5 + 6 + ARG TARGETOS 7 + ARG TARGETARCH 8 + 9 + WORKDIR /src/xeiaso.net/kefka 10 + 11 + COPY go.mod go.sum ./ 12 + RUN go mod download 13 + 14 + COPY . . 15 + 16 + RUN --mount=type=cache,target=/root/.cache GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags "all=-N -l" -o /app/bin/sophia ./cmd/sophia 17 + 18 + FROM alpine:${ALPINE_VERSION} AS run 19 + WORKDIR /app 20 + 21 + RUN apk add --no-cache ca-certificates 22 + 23 + COPY --from=build /app/bin/sophia /app/bin/sophia 24 + 25 + EXPOSE 2222 26 + 27 + CMD ["/app/bin/sophia"] 28 + 29 + LABEL org.opencontainers.image.source="https://tangled.org/xeiaso.net/sophia" 30 + LABEL org.opencontainers.image.title="Sophia" 31 + LABEL org.opencontainers.image.description="An SSH server backed by Tigris"