Dockerfile fix

This commit is contained in:
2023-05-05 11:16:35 +02:00
parent 655f13f50c
commit 88ae320519

View File

@@ -40,7 +40,7 @@ COPY --from=0 /usr/local/ /usr/local/
# Install dependencies
RUN apt-get update \
&& apt-get install -yq --no-install-suggests --no-install-recommends python-setuptools \
&& apt-get install -yq --no-install-suggests --no-install-recommends python-setuptools moreutils \
&& rm -rf /var/lib/apt/lists/*
# Create a user
@@ -54,16 +54,18 @@ USER bitmessage
RUN pybitmessage -t
# Setup environment
CMD sed -i -e "s|\(apiinterface = \).*|\10\.0\.0\.0|g" \
#&& -e "s|\(apivariant = \).*|\1json|g" \
-e "s|\(apiusername = \).*|\1$BITMESSAGE_API_USER|g" \
-e "s|\(apipassword = \).*|\1$BITMESSAGE_API_PASSWORD|g" \
-e "s|\(apiport = \).*|\1$BITMESSAGE_API_PORT|g" \
-e "s|\(apienabled = \).*|\1True|g" \
-e "s|\(ttl = \).*|\1$BITMESSAGE_TTL|g" \
-e "s|\(stopresendingafterxdays = \).*|\1$BITMESSAGE_STOPRESENDINGAFTERXDAYS|g" \
-e "s|\(udp = \).*|\1False|g" keys.dat \
&& exec pybitmessage -d
CMD cat keys.dat | \
sed -e "s|\(apiinterface = \).*|\10\.0\.0\.0|g" \
#-e "s|\(apivariant = \).*|\1json|g" \
-e "s|\(apiusername = \).*|\1$BITMESSAGE_API_USER|g" \
-e "s|\(apipassword = \).*|\1$BITMESSAGE_API_PASSWORD|g" \
-e "s|\(apiport = \).*|\1$BITMESSAGE_API_PORT|g" \
-e "s|\(apienabled = \).*|\1True|g" \
-e "s|\(ttl = \).*|\1$BITMESSAGE_TTL|g" \
-e "s|\(stopresendingafterxdays = \).*|\1$BITMESSAGE_STOPRESENDINGAFTERXDAYS|g" \
-e "s|\(udp = \).*|\1False|g" | \
sponge keys.dat && \
exec pybitmessage -d
# Generate Deterministic address
HEALTHCHECK --retries=3 --interval=15s \