forked from osmosis-labs/osmosis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (22 loc) · 788 Bytes
/
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
FROM faddat/archlinux AS build
ENV GOPATH=/go
ENV PATH=$PATH:/go/bin
# Set up dependencies
RUN pacman -Syyu --noconfirm curl make git go gcc linux-headers python base-devel protobuf wget && \
wget -O /genesis.json https://github.com/osmosis-labs/networks/raw/main/osmosis-1/genesis.json
# Add source files
COPY . /osmosis
# Install minimum necessary dependencies, build Cosmos SDK, remove packages
RUN cd /osmosis && \
make install
# Final image
FROM faddat/archlinux
RUN pacman -Syyu --noconfirm
# Copy over binaries from the build-env
COPY --from=build /go/bin/osmosisd /usr/bin/osmosisd
COPY --from=build /genesis.json /genesis.json
# Run osmosisd by default, omit entrypoint to ease using container with osmosiscli
EXPOSE 26656
EXPOSE 26657
EXPOSE 1317
EXPOSE 9090