Commit edb287cb authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update dockerfile

parent 04a2f4db
...@@ -20,11 +20,11 @@ FROM alpine ...@@ -20,11 +20,11 @@ FROM alpine
WORKDIR /app WORKDIR /app
COPY ./config.toml ./config.toml COPY ./config.toml /config.toml
VOLUME /app/config.toml VOLUME /config.toml
VOLUME /app/data VOLUME /app
COPY --from=build /tmp/validator /usr/bin/validator COPY --from=build /tmp/validator /usr/bin/validator
......
...@@ -24,11 +24,11 @@ FROM alpine ...@@ -24,11 +24,11 @@ FROM alpine
WORKDIR /app WORKDIR /app
COPY ./config.toml ./config.toml COPY ./config.toml /config.toml
VOLUME /app/config.toml VOLUME /config.toml
VOLUME /app/data VOLUME /app
COPY --from=build /tmp/validator /usr/bin/validator COPY --from=build /tmp/validator /usr/bin/validator
......
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
set -e set -e
echo "running validator" echo "running validator"
nohup /usr/bin/validator -c /app/config.toml >> /app/validator.log 2>&1 & nohup /usr/bin/validator -c /config.toml >> /app/validator.log 2>&1 &
tail -f /app/validator.log tail -f /app/validator.log
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment