mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-04-20 00:11:23 +02:00
Some checks failed
Build and Push to Docker Hub on changes to master branch / docker (push) Has been cancelled
21 lines
No EOL
406 B
Docker
21 lines
No EOL
406 B
Docker
FROM golang:alpine AS builder
|
|
|
|
WORKDIR /steamsalty
|
|
|
|
RUN apk update && apk add --no-cache ca-certificates
|
|
|
|
COPY . .
|
|
RUN go mod download
|
|
RUN go build -o /app/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 /app/steamsalty /app/steamsalty
|
|
|
|
ENTRYPOINT ["/app/steamsalty"] |