From 9898ba2fac0c3c68b470357fe59d7f042eb8edef Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 22 Dec 2020 18:29:18 -0500 Subject: [PATCH] add dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dfe7f30 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:latest + +WORKDIR /usr/src/certificateapi + +COPY . . + +ENV GIN_MODE=release + +RUN make +RUN cp build/certificateapi /usr/local/bin/certapi + +CMD ["/usr/local/bin/certapi"]