Dockerfile fix
This commit is contained in:
@@ -40,7 +40,7 @@ COPY --from=0 /usr/local/ /usr/local/
|
|||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update \
|
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/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Create a user
|
# Create a user
|
||||||
@@ -54,16 +54,18 @@ USER bitmessage
|
|||||||
RUN pybitmessage -t
|
RUN pybitmessage -t
|
||||||
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
CMD sed -i -e "s|\(apiinterface = \).*|\10\.0\.0\.0|g" \
|
CMD cat keys.dat | \
|
||||||
#&& -e "s|\(apivariant = \).*|\1json|g" \
|
sed -e "s|\(apiinterface = \).*|\10\.0\.0\.0|g" \
|
||||||
-e "s|\(apiusername = \).*|\1$BITMESSAGE_API_USER|g" \
|
#-e "s|\(apivariant = \).*|\1json|g" \
|
||||||
-e "s|\(apipassword = \).*|\1$BITMESSAGE_API_PASSWORD|g" \
|
-e "s|\(apiusername = \).*|\1$BITMESSAGE_API_USER|g" \
|
||||||
-e "s|\(apiport = \).*|\1$BITMESSAGE_API_PORT|g" \
|
-e "s|\(apipassword = \).*|\1$BITMESSAGE_API_PASSWORD|g" \
|
||||||
-e "s|\(apienabled = \).*|\1True|g" \
|
-e "s|\(apiport = \).*|\1$BITMESSAGE_API_PORT|g" \
|
||||||
-e "s|\(ttl = \).*|\1$BITMESSAGE_TTL|g" \
|
-e "s|\(apienabled = \).*|\1True|g" \
|
||||||
-e "s|\(stopresendingafterxdays = \).*|\1$BITMESSAGE_STOPRESENDINGAFTERXDAYS|g" \
|
-e "s|\(ttl = \).*|\1$BITMESSAGE_TTL|g" \
|
||||||
-e "s|\(udp = \).*|\1False|g" keys.dat \
|
-e "s|\(stopresendingafterxdays = \).*|\1$BITMESSAGE_STOPRESENDINGAFTERXDAYS|g" \
|
||||||
&& exec pybitmessage -d
|
-e "s|\(udp = \).*|\1False|g" | \
|
||||||
|
sponge keys.dat && \
|
||||||
|
exec pybitmessage -d
|
||||||
|
|
||||||
# Generate Deterministic address
|
# Generate Deterministic address
|
||||||
HEALTHCHECK --retries=3 --interval=15s \
|
HEALTHCHECK --retries=3 --interval=15s \
|
||||||
|
|||||||
Reference in New Issue
Block a user