Skip to content

Commit

Permalink
Declare VOLUME after environment variables are set
Browse files Browse the repository at this point in the history
  • Loading branch information
pdyraga committed Feb 12, 2021
1 parent 77b9df5 commit 8e836af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infrastructure/docker/celo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ RUN cp build/bin/geth $BIN_PATH

FROM alpine:3.10

# Volume where chain data are persisted
VOLUME [$CELO_DATA_DIR]

ENV BIN_PATH=/usr/local/bin
# Environment variables used in start.sh
ENV CELO_DATA_DIR=/mnt/data
ENV CELO_INIT_DIR=/celo-init
ENV CELO_RPC_PORT=8545
ENV CELO_WS_PORT=8546

# Volume where chain data are persisted
VOLUME [$CELO_DATA_DIR]

EXPOSE $CELO_RPC_PORT
EXPOSE $CELO_WS_PORT

Expand Down

0 comments on commit 8e836af

Please sign in to comment.