mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-11 17:52:50 +01:00
feat: docker files (#1104)
This commit is contained in:
@@ -11,6 +11,15 @@ builds:
|
|||||||
- linux
|
- linux
|
||||||
- darwin
|
- darwin
|
||||||
|
|
||||||
|
dockers:
|
||||||
|
- ids: [ catalyst ]
|
||||||
|
dockerfile: docker/goreleaser.Dockerfile
|
||||||
|
image_templates:
|
||||||
|
- "ghcr.io/securitybrewery/catalyst:latest"
|
||||||
|
- "ghcr.io/securitybrewery/catalyst:{{.Tag}}"
|
||||||
|
- "ghcr.io/securitybrewery/catalyst:v{{.Major}}"
|
||||||
|
- "ghcr.io/securitybrewery/catalyst:v{{.Major}}.{{.Minor}}"
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: tar.gz
|
- format: tar.gz
|
||||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
# this name template makes the OS and Arch compatible with the results of `uname`.
|
||||||
|
|||||||
24
docker/Dockerfile
Normal file
24
docker/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
FROM oven/bun:debian
|
||||||
|
RUN apt-get update && apt-get install -y make
|
||||||
|
COPY .. /tmp/catalyst
|
||||||
|
|
||||||
|
WORKDIR /tmp/catalyst
|
||||||
|
|
||||||
|
RUN make build-ui
|
||||||
|
|
||||||
|
FROM golang:1.23
|
||||||
|
COPY --from=0 /tmp/catalyst /tmp/catalyst
|
||||||
|
|
||||||
|
WORKDIR /tmp/catalyst
|
||||||
|
|
||||||
|
RUN go build -o /usr/local/bin/catalyst
|
||||||
|
|
||||||
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
|
COPY --from=1 /usr/local/bin/catalyst /usr/local/bin/catalyst
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
VOLUME /usr/local/bin/catalyst_data
|
||||||
|
|
||||||
|
CMD ["/usr/local/bin/catalyst", "serve", "--http", "0.0.0.0:8080"]
|
||||||
9
docker/goreleaser.Dockerfile
Normal file
9
docker/goreleaser.Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
|
COPY catalyst /usr/local/bin/catalyst
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
VOLUME /usr/local/bin/catalyst_data
|
||||||
|
|
||||||
|
CMD ["/usr/local/bin/catalyst", "serve", "--http", "0.0.0.0:8080"]
|
||||||
Reference in New Issue
Block a user