Add docker build flow

This commit is contained in:
2022-10-23 17:39:52 -06:00
parent dbb7134626
commit a8e2d70b6b
4 changed files with 52 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM golang:1.19-bullseye as builder
MAINTAINER restitux <restitux@ohea.xyz>
COPY . /runner
WORKDIR /runner
RUN go build .
FROM debian:bullseye
COPY --from=builder /runner/runner /runner
RUN apt-get update && apt-get install -y\
git \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/runner"]