Some docker changes
Some checks failed
Build and Push to Docker Hub on changes to master branch / docker (push) Has been cancelled

This commit is contained in:
Noah 2024-12-20 13:59:46 +01:00
parent b4782b30a1
commit f80a6e50b1
2 changed files with 7 additions and 3 deletions

View file

@ -1,19 +1,21 @@
FROM golang:alpine AS builder
WORKDIR /tmp/build
WORKDIR /steamsalty
RUN apk update && apk add --no-cache ca-certificates
COPY . .
RUN go mod download
RUN go build -o /tmp/build/bin/steamsalty
RUN go build -o /app/steamsalty
FROM scratch
WORKDIR /app
COPY --from=builder /tmp/build/bin/steamsalty /app/steamsalty
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"]