steamsalty/Dockerfile
Noah Theus 3cf9c8eea4
Some checks failed
Build and Push to Docker Hub on push to any branch / docker (push) Has been cancelled
bump golang.org/x/net to v0.43.0 for security fixes
- Upgraded golang.org/x/net from v0.33.0 to v0.43.0
- Addresses: CVE-2025-22870 and CVE-2025-22872
- No functional changes or breaking updates
2025-08-08 01:19:10 +02:00

24 lines
525 B
Docker

FROM --platform=$BUILDPLATFORM golang:1.24.6-alpine AS builder
WORKDIR /steamsalty
RUN apk update && apk add --no-cache ca-certificates
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG TARGETOS TARGETARCH
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o ./steamsalty
FROM scratch
WORKDIR /app
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
COPY --from=builder /usr/share/ca-certificates /usr/share/ca-certificates
COPY --from=builder /steamsalty/steamsalty /app/steamsalty
ENTRYPOINT ["/app/steamsalty"]