blob: d6033ac0e97a82ce4a18dea472da131fcc48d13e (
plain) (
blame)
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.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"]
|