Something went wrong. Try again.
Monorepo for Tangled — https://tangled.org forked from tangled.org/core
Something went wrong. Try again.
core Dockerfile.example
951 B 38 lines
123456789101112131415161718192021222324252627282930313233343536373839# Example Dockerfile for building a Go application with the buildah engine# This is just an example - adjust based on your needs
# Build stageFROM golang:1.21 AS builder
WORKDIR /app
# Copy go mod filesCOPY go.mod go.sum ./RUN go mod download
# Copy source codeCOPY . .
# Build the applicationsRUN mkdir -p appview/pages/static && touch appview/pages/static/xRUN CGO_ENABLED=1 go build -o /app/appview.out ./cmd/appviewRUN CGO_ENABLED=1 go build -o /app/knot.out ./cmd/knotRUN CGO_ENABLED=1 go build -o /app/spindle.out ./cmd/spindle
# Runtime stageFROM debian:bookworm-slim
# Install runtime dependenciesRUN apt-get update && apt-get install -y \ ca-certificates \ && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy binaries from builderCOPY --from=builder /app/appview.out /app/appviewCOPY --from=builder /app/knot.out /app/knotCOPY --from=builder /app/spindle.out /app/spindle
# Default commandCMD ["/app/appview"]