amocrm/Dockerfile
skeris 68c6e25260
All checks were successful
Deploy / CreateImage (push) Successful in 2m18s
Deploy / DeployService (push) Successful in 21s
--
2025-02-28 03:03:31 +03:00

12 lines
427 B
Docker

FROM gitea.pena/penadevops/container-images/golang:main as build
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o amocrm ./cmd/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o token_refresher ./cmd/tokens/main.go
FROM gitea.pena/penadevops/container-images/alpine:main as prod
COPY --from=build /app/amocrm .
COPY --from=build /app/token_refresher .
CMD ["/amocrm"]