Skip to content

Commit

Permalink
simplifies even more dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed May 17, 2022
1 parent 9845c85 commit 3780815
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,9 @@ RUN make build
FROM alpine
RUN apk update && apk --no-cache add bash

COPY --from=builder /celestia-app/build/celestia-appd /opt
COPY docker/priv_validator_state.json /opt/data
WORKDIR /opt
COPY --from=builder /celestia-app/build/celestia-appd /bin/celestia-appd

# p2p, rpc and prometheus port
EXPOSE 26656 26657 1317 9090

# This allows us to always set the --home directory using an env
# var while still capturing all arguments passed at runtime
ENTRYPOINT [ "/bin/bash", "-c", "exec ./celestia-appd \
--home /opt \
\"${@}\"", "--" ]
# Default command to run if no arguments are passed
CMD ["--help"]
ENTRYPOINT [ "/bin/celestia-appd" ]

0 comments on commit 3780815

Please sign in to comment.