mirror of
https://github.com/dragonfireclient/hydra-dragonfire.git
synced 2024-11-21 02:14:01 -05:00
9 lines
218 B
Docker
9 lines
218 B
Docker
FROM golang:1.18.9 as builder
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go test ./... &&\
|
|
CGO_ENABLED=0 go build .
|
|
|
|
FROM scratch
|
|
COPY --from=builder /app/hydra-dragonfire /bin/hydra-dragonfire
|
|
ENTRYPOINT ["/bin/hydra-dragonfire"]
|