0
0
mirror of https://github.com/hufrea/byedpi.git synced 2025-06-30 10:33:50 +00:00
byedpi/dist/Dockerfile
Viktor45 de4e681568 Update Dockerfile
Split RUN layers as requested
2024-09-21 20:28:40 +03:00

17 lines
469 B
Docker

FROM alpine:3.20 AS builder
RUN apk update && apk add --no-cache \
build-base \
curl \
git \
linux-headers
RUN git clone -b \
$(basename $(curl -Ls -o /dev/null -w %{url_effective} \
https://github.com/hufrea/byedpi/releases/latest)) \
https://github.com/hufrea/byedpi.git \
/opt/byedpi
WORKDIR /opt/byedpi
RUN make
FROM alpine:3.20
COPY --from=builder /opt/byedpi/ciadpi /opt/byedpi/ciadpi
EXPOSE 1080
ENTRYPOINT ["/opt/byedpi/ciadpi"]