d85527ede2
Bumps golang from 1.16.2-alpine to 1.16.3-alpine. Signed-off-by: dependabot[bot] <support@github.com>
14 lines
394 B
Docker
14 lines
394 B
Docker
# syntax = docker/dockerfile:1.2
|
|
|
|
FROM golang:1.16.3-alpine AS build
|
|
WORKDIR /src
|
|
RUN apk add --no-cache file
|
|
ENV GOMODCACHE /root/.cache/gocache
|
|
RUN --mount=target=. --mount=target=/root/.cache,type=cache \
|
|
CGO_ENABLED=0 go build -o /out/dagger ./cmd/dagger && file /out/dagger | grep "statically linked"
|
|
|
|
FROM scratch
|
|
COPY --from=build /out/dagger /bin/dagger
|
|
ENTRYPOINT ["/bin/dagger"]
|
|
|