Codebase list chisel / upstream/1.7.5+git20210709.1.60d62c6 Dockerfile
upstream/1.7.5+git20210709.1.60d62c6

Tree @upstream/1.7.5+git20210709.1.60d62c6 (Download .tar.gz)

Dockerfile @upstream/1.7.5+git20210709.1.60d62c6raw · history · blame

# build stage
FROM golang:alpine AS build-env
LABEL maintainer="[email protected]"
RUN apk update
RUN apk add git
ENV CGO_ENABLED 0
ADD . /src
WORKDIR /src
RUN go build \
    -ldflags "-X github.com/jpillora/chisel/share.BuildVersion=$(git describe --abbrev=0 --tags)" \
    -o chisel
# container stage
FROM alpine
RUN apk update && apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=build-env /src/chisel /app/chisel
ENTRYPOINT ["/app/chisel"]