Codebase list chisel / run/1bc088ef-14cf-4c96-ad4e-3bdb988f6ff8/upstream Dockerfile
run/1bc088ef-14cf-4c96-ad4e-3bdb988f6ff8/upstream

Tree @run/1bc088ef-14cf-4c96-ad4e-3bdb988f6ff8/upstream (Download .tar.gz)

Dockerfile @run/1bc088ef-14cf-4c96-ad4e-3bdb988f6ff8/upstreamraw · 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"]