diff options
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d6033ac --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# This image provides the sally binary. +# It does not include a sally configuration. +# A /sally.yaml file is required for this to run. + +FROM golang:1.19-alpine + +COPY . /build +WORKDIR /build +RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o sally go.uber.org/sally + +FROM scratch +COPY --from=0 /build/sally /sally +EXPOSE 8080 +WORKDIR / +CMD ["/sally"] |