chisel-forward/Dockerfile
2024-09-03 10:47:08 +02:00

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"]