Files
Fabric/scripts/docker/Dockerfile
Kayvan Sylvan 1622a34331 chore: remove docker-test framework and simplify production docker setup
- Remove entire docker-test directory and testing infrastructure
- Delete complex test runner script and environment files
- Simplify production Dockerfile with multi-stage build optimization
- Remove docker-compose.yml and start-docker.sh helper scripts
- Update README with cleaner Docker usage instructions
- Streamline container build process and reduce image size
2025-08-27 07:00:52 -07:00

27 lines
455 B
Docker

# syntax=docker/dockerfile:1
FROM golang:1.24-alpine AS builder
WORKDIR /src
# Install build dependencies
RUN apk add --no-cache git
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /fabric ./cmd/fabric
FROM alpine:latest
RUN apk add --no-cache ca-certificates \
&& mkdir -p /root/.config/fabric
COPY --from=builder /fabric /usr/local/bin/fabric
EXPOSE 8080
ENTRYPOINT ["fabric"]