diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f381c6f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:alpine AS build + +WORKDIR /tmp/nomad-resource +COPY . . + +RUN go build -o dist/out out/main.go + +FROM alpine:edge + +RUN apk add --no-cache --update nomad + +COPY --from=build /tmp/nomad-resource/dist/* /opt/resource/