chisel-forward/Dockerfile

19 lines
419 B
Text
Raw Normal View History

2024-08-30 11:28:33 +00:00
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 socat bash
COPY --from=builder /chisel/chisel /usr/bin/chisel
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]