init
This commit is contained in:
commit
c41ef4ba88
4 changed files with 49 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue