This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/Dockerfile
dependabot[bot] b2737eaae1
build(deps): bump golang from 1.16.1-alpine to 1.16.2-alpine
Bumps golang from 1.16.1-alpine to 1.16.2-alpine.

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-12 07:07:03 +00:00

13 lines
358 B
Docker

# syntax = docker/dockerfile:1.2
FROM golang:1.16.2-alpine AS build
WORKDIR /src
RUN apk add --no-cache file
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"]