Skip to content

Commit

Permalink
app: build and publish backend 4
Browse files Browse the repository at this point in the history
Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
  • Loading branch information
frzifus committed Mar 11, 2024
1 parent 93f7d11 commit 460937d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_push_images.yml
Expand Up @@ -18,6 +18,7 @@ jobs:
- frontend
- backend1
- backend2
- backend4
- loadgen

steps:
Expand Down
15 changes: 15 additions & 0 deletions app/backend4/Dockerfile
@@ -0,0 +1,15 @@
FROM golang:1.22 as builder

WORKDIR /src

COPY . /src

RUN CGO_ENABLED=0 go build -v -o /app

FROM scratch

COPY --from=0 /app /app

EXPOSE 8080

CMD ["/app"]

0 comments on commit 460937d

Please sign in to comment.