doesn't build yet
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM golang:1.15
|
||||
|
||||
WORKDIR /go/src/app
|
||||
copy . .
|
||||
|
||||
RUN go get -d -v ./...
|
||||
RUN go install -v ./...
|
||||
|
||||
CMD ["sco"]
|
||||
|
||||
|
||||
|
||||
|
||||
FROM golang:1.15 as builder
|
||||
RUN mkdir /build
|
||||
ADD . /build/
|
||||
WORKDIR /build
|
||||
RUN make
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /build/main /app/
|
||||
WORKDIR /app
|
||||
CMD ["./main"]
|
||||
Reference in New Issue
Block a user