Initial commit
This commit is contained in:
parent
acb7d15bb7
commit
da78de47af
3 changed files with 26 additions and 3 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -1,2 +1,16 @@
|
|||
FROM golang:latest
|
||||
WORKDIR /the/workdir/path
|
||||
FROM golang:latest AS builder
|
||||
WORKDIR shared-data/app
|
||||
|
||||
COPY shared-data/repo/ ./
|
||||
|
||||
# RUN go mod download
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o fibonacci_go .
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR shared-data/app
|
||||
|
||||
COPY --from=builder /shared-data/app/fibonacci_go .
|
||||
|
||||
ENTRYPOINT [ "/shared-data/app/fibonacci_go" ]
|
||||
|
||||
|
|
|
|||
Reference in a new issue