Skip to content
Snippets Groups Projects
Commit 93b2ea39 authored by ale's avatar ale
Browse files

Build a simple container image

parent 6d2b2375
Branches
No related tags found
No related merge requests found
include: "https://git.autistici.org/ai3/build-container/raw/master/common.yml"
FROM golang:1.17.2 as build
ADD . /src
RUN cd /src && go build -tags netgo -o gitlab-review-float-env-dashboard ./main.go && strip gitlab-review-float-env-dashboard
FROM scratch
COPY --from=build /src/gitlab-review-float-env-dashboard /gitlab-review-float-env-dashboard
CMD ["/gitlab-review-float-env-dashboard"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment