mirror of
https://github.com/nealey/vail.git
synced 2025-01-09 05:20:37 -07:00
11 lines
257 B
Docker
11 lines
257 B
Docker
FROM golang:1 AS builder
|
|
|
|
COPY . /src
|
|
COPY static /target/static
|
|
WORKDIR /src
|
|
RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' ./...
|
|
RUN cp -r /go/bin /target
|
|
|
|
FROM scratch
|
|
COPY --from=builder /target /
|
|
ENTRYPOINT [ "/bin/vail" ]
|