-
Notifications
You must be signed in to change notification settings - Fork 106
/
Dockerfile
59 lines (50 loc) · 1.38 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
ARG TERRA_VERSION
FROM ghcr.io/terra-money/core:${TERRA_VERSION}
# Set up fo nginx
USER root
COPY --chmod=644 nginx.conf /etc/nginx/nginx.conf
COPY --chmod=755 entrypoint.sh /usr/local/bin/entrypoint.sh
RUN apk add --no-cache nginx && \
mkdir -p /var/lib/nginx/logs && \
chown -R terra:terra /var/lib/nginx && \
ln -sf /dev/stdout /var/lib/nginx/logs/access.log && \
ln -sf /dev/stderr /var/lib/nginx/logs/error.log
# Setup for localterra
RUN set -eux &&\
mkdir -p /app/config && \
mkdir -p /app/data && \
chown -R terra:terra /app && \
terrad init localterra \
--home /app \
--chain-id localterra && \
echo '{"height": "0","round": 0,"step": 0}' > /app/data/priv_validator_state.json
COPY ./terra/priv_validator_key.json \
./terra/genesis.json \
/app/config/
ENTRYPOINT [ "entrypoint.sh" ]
# rest server
EXPOSE 1317
# nginx
EXPOSE 8080
# grpc
EXPOSE 9090
# grpc-web
EXPOSE 9091
# tendermint p2p
EXPOSE 26656
# tendermint rpc
EXPOSE 26657
CMD terrad start \
--home /app \
--minimum-gas-prices 0.015uluna \
--moniker localterra \
--p2p.upnp true \
--rpc.laddr tcp://0.0.0.0:26657 \
--api.enable true \
--api.swagger true \
--api.address tcp://0.0.0.0:1317 \
--api.enabled-unsafe-cors true \
--grpc.enable true \
--grpc.address 0.0.0.0:9090 \
--grpc-web.enable \
--grpc-web.address 0.0.0.0:9091