diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 081cb6b..54abfcd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,7 +17,7 @@ jobs: with: docker_registry: ghcr.io docker_username: ${{ github.actor }} - docker_password: ${{ secrets.GITHUB_TOKEN }} + docker_password: ${{ secrets.GITHUB_TOKEN }} backup_registry: ${{ secrets.BACKUP_REGISTRY }} backup_username: ${{ secrets.BACKUP_USERNAME }} backup_password: ${{ secrets.BACKUP_PASSWORD }} diff --git a/Dockerfile b/Dockerfile index 8b381c0..e0afec9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,9 @@ COPY . . RUN go mod download RUN make build -FROM alpine:latest +FROM scratch +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=builder /app/build/github-backup /main ENTRYPOINT ["/main"] CMD ["--config", "/config/config.json"] \ No newline at end of file