Skip to content

Commit

Permalink
feat(dockerfile): add crontab auto pin and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
nampdn committed Aug 4, 2019
1 parent 35cd099 commit e1b88e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ RUN apk add jq bash

COPY replicator.sh .

RUN crontab -l > ipfscron && \
echo "*/30 * * * * /bin/bash /replicator.sh" >> ipfscron && \
crontab ipfscron && \
rm ipfscron

EXPOSE 4001
EXPOSE 5001
EXPOSE 8080
Expand Down

0 comments on commit e1b88e0

Please sign in to comment.