You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
582 B

7 years ago
FROM debian:stretch AS builder
ARG DEBIAN_FRONTEND=noninteractive
COPY ./image-platforms/common/dependencies.pkglist /tmp
RUN apt-get update \
&& cat tmp/dependencies.pkglist | xargs apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
7 years ago
ARG COMMIT_HASH
COPY ./ /usr/src/n2n
7 years ago
WORKDIR /usr/src/n2n
7 years ago
RUN chmod +x image-platforms/common/prepare-build.sh && image-platforms/common/prepare-build.sh
7 years ago
FROM debian:stretch
COPY --from=builder /usr/src/n2n/supernode /usr/bin
EXPOSE 7654 7654/udp
EXPOSE 5645 5645/udp
ENTRYPOINT ["/usr/bin/supernode", "-f"]