Skip to content

Commit 1c25fcb

Browse files
authored
Add dockerfile and build/publish workflow (#39)
1 parent d124521 commit 1c25fcb

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/docker.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build Docker Images
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '**'
9+
pull_request:
10+
11+
jobs:
12+
package:
13+
uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main
14+
with:
15+
push: ${{ github.event_name != 'pull_request' }}

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1 AS builder
2+
3+
COPY . /app
4+
WORKDIR /app
5+
RUN make build
6+
7+
FROM gcr.io/distroless/static-debian12:latest
8+
COPY --from=builder /app/bin/chia-healthcheck /usr/bin/chia-healthcheck
9+
CMD ["/usr/bin/chia-healthcheck", "serve"]

0 commit comments

Comments
 (0)