[docker] Add Dockerfile

This commit is contained in:
Mustafa Gezen 2020-12-17 13:11:35 +01:00
parent 70a1ef3acc
commit 777015bb1d
1 changed files with 9 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM golang:1.15.6-alpine
COPY . /src
WORKDIR /src
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./cmd/srpmproc
FROM centos:8.3.2011
COPY --from=0 /src/srpmproc /usr/bin/srpmproc
ENTRYPOINT ["/usr/bin/srpmproc"]