diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-22 09:39:17 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-22 09:39:17 +0200 |
commit | d9dfabe75e4edb7fe2f32cb9a42113a529f52bf6 (patch) | |
tree | 64aaa67b55628dc7120ba6a140b49b2d5ed4bdb8 /docker/ui/Dockerfile | |
parent | 2ce3cb9fdb90847a33106c61708f516ea6ca932a (diff) |
Add Docker
Diffstat (limited to 'docker/ui/Dockerfile')
-rw-r--r-- | docker/ui/Dockerfile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docker/ui/Dockerfile b/docker/ui/Dockerfile new file mode 100644 index 0000000..cccf52c --- /dev/null +++ b/docker/ui/Dockerfile @@ -0,0 +1,21 @@ +# Build stage +FROM golang:alpine AS builder + +RUN apk --update add ca-certificates git + +WORKDIR /app + +COPY go.mod go.sum ./ +RUN go mod download + +COPY . . +RUN CGO_ENABLED=0 GOOS=linux go build -o rahanna-ui cmd/ui/main.go + +# Run stage +FROM alpine:latest + +WORKDIR /app + +COPY --from=builder /app/rahanna-ui . + +CMD ["./rahanna-ui"] |