Add Dockerfiles
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
2bb475e8ca
commit
261fc86f1b
|
@ -0,0 +1,17 @@
|
|||
FROM golang:alpine AS build
|
||||
|
||||
RUN mkdir /src /dist
|
||||
|
||||
WORKDIR /src
|
||||
COPY . ./
|
||||
|
||||
WORKDIR /src/cmd/control/
|
||||
ENV CGO_ENABLED=0
|
||||
RUN go build -o /dist/control
|
||||
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /dist/control /control
|
||||
|
||||
ENTRYPOINT ["/control"]
|
|
@ -0,0 +1,16 @@
|
|||
FROM golang:buster AS build
|
||||
|
||||
RUN mkdir /src /dist
|
||||
|
||||
WORKDIR /src
|
||||
COPY . ./
|
||||
|
||||
WORKDIR /src/cmd/preview/
|
||||
RUN go build -o /dist/preview
|
||||
|
||||
|
||||
FROM debian:buster
|
||||
|
||||
COPY --from=build /dist/preview /preview
|
||||
|
||||
ENTRYPOINT ["/preview"]
|
|
@ -1,4 +1,4 @@
|
|||
FROM golang:latest AS build
|
||||
FROM golang:alpine AS build
|
||||
|
||||
RUN mkdir /src /dist
|
||||
|
||||
|
|
Loading…
Reference in New Issue