aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 9fb023ce68df3519c2d78be199dba9cb489853f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.21-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"]