-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
59 lines (43 loc) · 1.62 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
# ----------------------------------------------------------------------
# Building environment
# ----------------------------------------------------------------------
FROM golang:1.18.1-alpine AS go-builder
# Set up dependencies
RUN set -eux; apk add --no-cache ca-certificates build-base;
RUN apk add --no-cache make gcc git libc-dev bash linux-headers eudev-dev
# NOTE: add these to run with LEDGER_ENABLED=true
# RUN apk add libusb-dev linux-headers
# Add env variable
ENV GOBIN /go/bin
WORKDIR /code
COPY . /code/
# See https://github.com/CosmWasm/wasmvm/releases
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.0.0-beta3/libwasmvm_muslc.a /lib/libwasmvm_muslc.a
RUN sha256sum /lib/libwasmvm_muslc.a | grep eba8d0a12005e1a941168299f0e16fbd6f4a93ae02491e3e1d1a7718dcf49c6e
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc make build
# ----------------------------------------------------------------------
# Running environment
# ----------------------------------------------------------------------
FROM ubuntu:18.04
# rest server
EXPOSE 1317
# tendermint p2p
EXPOSE 26656
# tendermint rpc
EXPOSE 26657
# metrics port
EXPOSE 26660
# grpc port
EXPOSE 9090
#RUN apt update && \
# apt install -y iputils-ping net-tools vim curl wget musl-dev netcat && \
# apt clean && apt autoclean
# Bash: konstellation: No such file or directory
# ldd /usr/local/bin/konstellation
# libc.musl-x86_64.so.1 => not found
#RUN ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
COPY --from=go-builder /code/build/knstld /usr/bin/knstld
COPY docker/* /opt/
RUN chmod +x /opt/*.sh
WORKDIR /opt
CMD ["/usr/bin/knstld", "version"]