Dockerfile

This commit is contained in:
anianz
2020-11-11 00:53:47 +01:00
parent 9917d5e3e4
commit 3927b01301

12
Dockerfile Normal file
View File

@@ -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/