This commit is contained in:
JMARyA 2024-08-30 13:28:33 +02:00
commit c41ef4ba88
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 49 additions and 0 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
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"]