18 lines
413 B
Docker
18 lines
413 B
Docker
FROM alpine:latest AS builder
|
|
|
|
RUN apk update && apk upgrade && \
|
|
apk add --no-cache go git
|
|
|
|
WORKDIR /
|
|
RUN git clone "https://github.com/jpillora/chisel"
|
|
WORKDIR /chisel
|
|
RUN go build -o chisel main.go
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk update && apk upgrade && \
|
|
apk add --no-cache bash
|
|
|
|
COPY --from=builder /chisel/chisel /usr/bin/chisel
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
CMD ["/bin/bash", "/entrypoint.sh"]
|