summaryrefslogtreecommitdiff
path: root/docker/ui/Dockerfile
blob: cccf52cf43e16641b5ff6515830df02491d1b81a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"]