mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-04-19 07:51:22 +02:00
- Fixed SLEEPTIME not working (always 0) - Refined logging - Added metadata to /info command - Bot now automatically sets own commands for autocompletion
24 lines
525 B
Docker
24 lines
525 B
Docker
FROM --platform=$BUILDPLATFORM golang:1.23.4-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"]
|