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"]

View file

@ -3,6 +3,8 @@ services:
image: ghcr.io/watn3y/steamsalty:master
container_name: steamsalty
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- TELEGRAMAPITOKEN=
- STEAMAPIKEY=