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 32f3d013f8
All checks were successful
continuous-integration/drone/push Build is passing
Fixed Dockerfile and build script
2022-11-16 05:33:09 +01:00

20 lines
311 B
Docker

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
COPY --from=build-automation /src/config.yml /app/config.yml
CMD ["/app/automation"]