Skip to content

Commit

Permalink
feat: add docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta committed Nov 1, 2024
1 parent ad51e48 commit c44ddf8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ group "default" {
"flow-worker",
"flow-api",
"flow-snapshot-worker",
"flow-maintenance",
"peerdb-ui"
]
}
Expand Down Expand Up @@ -65,6 +66,20 @@ target "flow-worker" {
]
}

target "flow-maintenance" {
context = "."
dockerfile = "stacks/flow.Dockerfile"
target = "flow-maintenance"
platforms = [
"linux/amd64",
"linux/arm64",
]
tags = [
"${REGISTRY}/flow-maintenance:${TAG}",
"${REGISTRY}/flow-maintenance:${SHA_SHORT}",
]
}

target "peerdb" {
context = "."
dockerfile = "stacks/peerdb-server.Dockerfile"
Expand Down
7 changes: 7 additions & 0 deletions stacks/flow.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@ ENTRYPOINT [\
"./peer-flow",\
"snapshot-worker"\
]


FROM flow-base AS flow-maintenance
ENTRYPOINT [\
"./peer-flow",\
"maintenance"\
]

0 comments on commit c44ddf8

Please sign in to comment.