Something went wrong. Try again.
Terminal friendly sport schedule
Something went wrong. Try again.
123456789101112131415161718192021FROM golang:1.22-alpine AS builderWORKDIR /appCOPY . .RUN go build -o main .
FROM alpine:latestRUN apk add --no-cache aws-cli sqliteWORKDIR /appCOPY --from=builder /app/main .COPY backup.sh .
RUN mkdir -p /app/dataVOLUME /app/data
COPY crontab /etc/crontabs/rootRUN apk add --no-cache dcronCOPY init.sh .
# Start both the Go app and crondENTRYPOINT ["/app/init.sh"]CMD ["./main"]