-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build docker image #9524
Comments
They forgot some dependencies:
|
Ah no my bad, it was just missing python3. |
Solved this by adding the Dockerfile: ENV USE_DEVICE_TREZOR=OFF IMHO this should go into the official Dockerfile (or install Python) |
well how can we use the Dockerfile with trezor? |
Good point. I'll check tomorrow how to solve it the other way around |
I bumped the Ubuntu image and just installed python3 and now image seems to build and run. Can't check the specifics of Trezor's thought: # Multistage docker build, requires docker 17.05
# builder stage
FROM ubuntu:24.04 as builder
ENV USE_DEVICE_TREZOR=ON
RUN set -ex && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends --yes install \
automake \
autotools-dev \
bsdmainutils \
build-essential \
ca-certificates \
ccache \
cmake \
curl \
git \
libtool \
pkg-config \
gperf \
python3
WORKDIR /src
RUN git clone -q --depth 1 https://github.com/monero-project/monero.git
ARG NPROC
ENV USE_DEVICE_TREZOR=OFF
RUN cd /src/monero && \
set -ex && \
git submodule init && git submodule update && \
rm -rf build && \
if [ -z "$NPROC" ] ; \
then make -j$(nproc) depends target=x86_64-linux-gnu ; \
else make -j$NPROC depends target=x86_64-linux-gnu ; \
fi
# runtime stage
FROM ubuntu:24.04
ENV UID=10016
RUN set -ex && \
apt-get update && \
apt-get --no-install-recommends --yes install ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt
COPY --from=builder /src/monero/build/x86_64-linux-gnu/release/bin /usr/local/bin/
# Create monero user
RUN useradd --uid $UID --system --user-group monero && \
mkdir -p /wallet /home/monero/.bitmonero && \
chown -R monero:monero /home/monero/.bitmonero && \
chown -R monero:monero /wallet
# Contains the blockchain
VOLUME /home/monero/.bitmonero
# Generate your wallet via accessing the container and run:
# cd /wallet
# monero-wallet-cli
VOLUME /wallet
EXPOSE 18080
EXPOSE 18081
# switch to user monero
USER monero
ENTRYPOINT ["monerod"]
CMD ["--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=18080", "--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=18081", "--non-interactive", "--confirm-external-bind"] |
The text was updated successfully, but these errors were encountered: