netflux-homepage/Dockerfile
Rob Watson d0fd4d1461
All checks were successful
continuous-integration/drone Build is passing
Initial iteration
2022-06-06 18:48:53 +02:00

17 lines
258 B
Docker

FROM golang:1.18-alpine3.15 as go-builder
ENV GOPATH ""
RUN apk add git
WORKDIR /app
ADD go.mod go.sum ./
RUN go mod download
ADD ./ .
RUN go build -o ./server .
FROM alpine:3.14
COPY --from=go-builder /app/server /app/server
ENTRYPOINT ["/app/server"]