feat(docker): adding docker image build support
This commit is contained in:
13
docker/Dockerfile.api
Normal file
13
docker/Dockerfile.api
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM golang:latest AS builder
|
||||
ARG CGO_ENABLED=0
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
|
||||
RUN go build
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /app/realz /realz
|
||||
ENTRYPOINT ["/realz"]
|
Reference in New Issue
Block a user