summaryrefslogtreecommitdiff
path: root/docker/ui
diff options
context:
space:
mode:
Diffstat (limited to 'docker/ui')
-rw-r--r--docker/ui/Dockerfile21
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"]