Skip to content

Commit

Permalink
Add dockerfile and build/publish workflow (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster authored Jul 18, 2024
1 parent d124521 commit 1c25fcb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build Docker Images

on:
push:
branches:
- main
tags:
- '**'
pull_request:

jobs:
package:
uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main
with:
push: ${{ github.event_name != 'pull_request' }}
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:1 AS builder

COPY . /app
WORKDIR /app
RUN make build

FROM gcr.io/distroless/static-debian12:latest
COPY --from=builder /app/bin/chia-healthcheck /usr/bin/chia-healthcheck
CMD ["/usr/bin/chia-healthcheck", "serve"]

0 comments on commit 1c25fcb

Please sign in to comment.