mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2026-06-23 12:22:36 -04:00
Compare commits
9 Commits
add-renova
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46d68375cd | ||
|
|
1bb3947f60 | ||
|
|
df326bcf85 | ||
|
|
f0f9059dd6 | ||
|
|
93b13c156d | ||
|
|
5b7ab876bf | ||
|
|
c0187089f4 | ||
|
|
6f18143ef1 | ||
|
|
81b47a06b7 |
22
Dockerfile
22
Dockerfile
@@ -1,8 +1,8 @@
|
|||||||
# renovate: datasource=github-releases depName=SChernykh/p2pool
|
# renovate: datasource=github-releases depName=SChernykh/p2pool
|
||||||
ARG P2POOL_BRANCH=v4.17
|
ARG P2POOL_BRANCH=v4.17
|
||||||
|
|
||||||
# Select latest Ubuntu LTS for the build image base
|
# Pin to the latest Ubuntu LTS for the build image base (kept current by Renovate)
|
||||||
FROM ubuntu:latest as build
|
FROM ubuntu:26.04 AS build
|
||||||
LABEL author="sethforprivacy@protonmail.com" \
|
LABEL author="sethforprivacy@protonmail.com" \
|
||||||
maintainer="sethforprivacy@protonmail.com"
|
maintainer="sethforprivacy@protonmail.com"
|
||||||
|
|
||||||
@@ -17,28 +17,30 @@ RUN apt-get update \
|
|||||||
|
|
||||||
ENV CFLAGS='-fPIC'
|
ENV CFLAGS='-fPIC'
|
||||||
ENV CXXFLAGS='-fPIC'
|
ENV CXXFLAGS='-fPIC'
|
||||||
ENV USE_SINGLE_BUILDDIR 1
|
ENV USE_SINGLE_BUILDDIR=1
|
||||||
ENV BOOST_DEBUG 1
|
ENV BOOST_DEBUG=1
|
||||||
|
|
||||||
# Switch to p2pool source directory
|
# Switch to p2pool source directory
|
||||||
WORKDIR /p2pool
|
WORKDIR /p2pool
|
||||||
|
|
||||||
# Git pull p2pool source at specified tag/branch
|
# Git pull p2pool source at specified tag/branch
|
||||||
ARG P2POOL_BRANCH
|
ARG P2POOL_BRANCH
|
||||||
RUN git clone --recursive --branch ${P2POOL_BRANCH} https://github.com/SChernykh/p2pool .
|
RUN git clone --recursive --depth 1 --shallow-submodules --branch ${P2POOL_BRANCH} https://github.com/SChernykh/p2pool .
|
||||||
|
|
||||||
# Make static p2pool binary
|
# Make static p2pool binary
|
||||||
ARG NPROC
|
ARG NPROC
|
||||||
RUN test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && mkdir build && cd build && cmake .. && make -j"$(cat /nproc)"
|
RUN test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && mkdir build && cd build && cmake .. && make -j"$(cat /nproc)"
|
||||||
|
|
||||||
# Select latest Ubuntu LTS for the image base
|
# Pin to the latest Ubuntu LTS for the image base (kept current by Renovate)
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:26.04
|
||||||
|
|
||||||
# Install remaining dependencies
|
# Install only the runtime shared libraries that the p2pool binary links against
|
||||||
|
# (runtime equivalents of the build-stage -dev packages, verified via ldd on the
|
||||||
|
# built binary against the pinned Ubuntu 24.04 base)
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get upgrade -y \
|
&& apt-get upgrade -y \
|
||||||
&& apt-get install --no-install-recommends -y libuv1-dev libzmq3-dev libsodium-dev \
|
&& apt-get install --no-install-recommends -y libuv1t64 libzmq5 libsodium23 \
|
||||||
libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev \
|
libpgm-5.3-0t64 libnorm1t64 libgssapi-krb5-2 libcurl4t64 libidn2-0 \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Seth Simmons (@sethsimmons)
|
Copyright (c) 2021 Seth For Privacy (@sethforprivacy)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
Reference in New Issue
Block a user