mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 04:57:08 +00:00
fix(deps): update golang image to 1.21
This commit is contained in:
parent
7ba09cc345
commit
21f4fdba7e
35
Dockerfile
35
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM golang:1.22-alpine AS go-builder
|
||||
FROM golang:1.21-alpine AS go-builder
|
||||
|
||||
SHELL ["/bin/sh", "-ecuxo", "pipefail"]
|
||||
|
||||
@ -32,38 +32,13 @@ RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build \
|
||||
FROM alpine:3.16
|
||||
|
||||
COPY --from=go-builder /code/build/sonrd /usr/bin/sonrd
|
||||
COPY scripts/test_node.sh /usr/local/bin/test_node.sh
|
||||
|
||||
# Install dependencies
|
||||
# Install dependencies used for Starship
|
||||
RUN apk add --no-cache curl make bash jq sed
|
||||
|
||||
WORKDIR /opt
|
||||
|
||||
# Set environment variables
|
||||
ENV CHAIN_ID=sonr-testnet-1 \
|
||||
HOME_DIR=/root/.core \
|
||||
BINARY=sonrd \
|
||||
DENOM=usnr \
|
||||
KEYRING=test \
|
||||
KEY=user1 \
|
||||
KEY2=user2 \
|
||||
CLEAN=true \
|
||||
RPC=26657 \
|
||||
REST=1317 \
|
||||
PROFF=6060 \
|
||||
P2P=26656 \
|
||||
GRPC=9090 \
|
||||
GRPC_WEB=9091 \
|
||||
ROSETTA=8080 \
|
||||
BLOCK_TIME=5s
|
||||
# rest server, tendermint p2p, tendermint rpc
|
||||
EXPOSE 1317 26656 26657
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 1317 26656 26657 9090 9091 8080
|
||||
|
||||
# Create entrypoint script
|
||||
RUN echo '#!/bin/sh' > /usr/local/bin/entrypoint.sh && \
|
||||
echo 'set -e' >> /usr/local/bin/entrypoint.sh && \
|
||||
echo 'bash /usr/local/bin/test_node.sh' >> /usr/local/bin/entrypoint.sh && \
|
||||
mod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
CMD ["/usr/bin/sonrd", "start"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user