blob: 2e6cef4510fc243004925dc4c19c3dfaf6f64fcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# 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
LABEL version="0.0.9-2"
WORKDIR /app
COPY --from=builder /app/rahanna-ui .
CMD ["./rahanna-ui"]
|