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.
|
|
|
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/*
|
|
|
|
|
|
|
|
ARG COMMIT_HASH
|
|
|
|
|
|
|
|
COPY ./ /usr/src/n2n
|
|
|
|
|
|
|
|
WORKDIR /usr/src/n2n
|
|
|
|
|
|
|
|
RUN chmod +x image-platforms/common/prepare-build.sh && image-platforms/common/prepare-build.sh
|
|
|
|
|
|
|
|
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"]
|