This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM golang:alpine as build-automation
|
||||
|
||||
WORKDIR /src
|
||||
COPY ./go.mod .
|
||||
COPY ./go.sum .
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go build
|
||||
|
||||
|
||||
FROM golang:alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build-automation /src/automation /app/automation
|
||||
|
||||
CMD ["/app/automation"]
|
||||
Reference in New Issue
Block a user