mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-10-24 17:31:12 +02:00
Some checks failed
Build and Push to Docker Hub on push to any branch / docker (push) Has been cancelled
27 lines
704 B
Docker
27 lines
704 B
Docker
FROM --platform=$BUILDPLATFORM golang:1.25.2-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
|
|
LABEL org.opencontainers.image.source=https://github.com/watn3y/steamsalty
|
|
LABEL org.opencontainers.image.description="SteamSalty"
|
|
LABEL org.opencontainers.image.licenses=GPL-3.0
|
|
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"]
|