This repository has been archived on 2023-08-29. You can view files and clone it, but cannot push or open issues or pull requests.
automation/Dockerfile
Dreaded_X 20e7e830a6
Some checks failed
continuous-integration/drone/push Build is failing
Renamed output binary to avoid conflict
2022-11-19 03:57:44 +01:00

20 lines
297 B
Docker

FROM golang:alpine as build-automation
WORKDIR /src
COPY ./go.mod .
COPY ./go.sum .
RUN go mod download
COPY . .
RUN go build -o app
FROM golang:alpine
WORKDIR /app
COPY --from=build-automation /src/app /app/app
COPY --from=build-automation /src/config.yml /app/config.yml
CMD ["/app/app"]